I’m currently working on a setup where I use Traefik as an ingress webserver. It works well when I start a single instance on my development machine. But when I deploy it as a stack in my (single-node) swarm setup, I run into an issue with IPv6.
HTTP requests that come over IPv4 are served fine, but IPv6 time out. This does only happen in a stack deployment, not with
docker run or similar.
Here is my compose file:
--- version: "3.3" services: traefik: image: traefik ports: - 80:80
docker stack deploy --compose-file docker-compose.yml ingress
curl http://localhost -4 vs.
curl http://localhost -6
Version: Docker 18.02.0-ce
Operating System: CentOS 7, Arch, CoreOS
This seems to be an issue with Docker’s layer 3 proxy. From my view, IPv6 inside the Docker network is not necessary. I even tried that by configuring Docker to allocate an IPv6 prefix on its network, but to that did not help either.
Has anyone an idea?