IPv6 only, can't connect to itself

Docker doesn’t support IPv6 by default. Did you added IPv6 support to your system?

you can check using curl ipv6.google.com or any other IPv6-only website…

from my notes (bare with if it’s outdated) change /etc/docker/daemon.json to:

{
"userland-proxy": false,
"ipv6": true,
"fixed-cidr-v6": "fd00:beef:beef::/48",
"experimental": true,
"ip6tables": true
} 

restart docker daemon, create a bridge network with IPv6 support and have fun!

UPDATE: I’m running separate CODE container but it works as well:

# check local CODE IPv6 connectivity 
docker compose exec app curl --ipv6 -I 'https://collabora.mydomain.tld/hosting/discovery' -v
*   Trying [fd00:feed:beef:1::5]:443...
* Connected to collabora.mydomain.tld (fd00:feed:beef:1::5) port 443 (#0)
# check google IPv6 connectivity 
docker compose exec app curl --ipv6 -I 'https://ipv6.google.com' -v
*   Trying [2a00:1450:400a:800::200e]:443...
* Connected to ipv6.google.com (2a00:1450:400a:800::200e) port 443 (#0)