I'm trying to run a docker Container with a number of exposed ports on IPv6. I don't want the containers to have IPv6 addresses of their own. All I want is for them to be reachable under the IPv6 address of the host (using port forwarding).
I enabled IPv6 in the docker daemon (http://docs.docker.oeynet.com/engine/userguide/networking/default_network/ipv6/).
I tried
ports:
# The HTTP port
- ":::80:80"
in the docker-compose.yaml for the container but that seems to mess up the configuration completely:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9774a1a6322c traefik:latest "/entrypoint.sh --ap…" 1 second ago Up Less than a second 80/tcp traefik
With another container (that is not under my control an I can't seem to find out how it's started), the ports were forwarded correctly:
a04b40299a8f portainer/portainer-ce "/portainer" 7 days ago Up 3 minutes 0.0.0.0:8000->8000/tcp, :::8000->8000/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp portainer
This one is also reachable using the IPv6 address of the host (as expected). How can I achieve this for the first container?
20.10.6
and the latest debian still has20.10.5
in its repos: forums.docker.com/t/docker-doesnt-open-ipv6-ports/106201/2