I’m using Docker Version 26.1.2 on Debian. I’ve been trying to enable IPv6 inside some containers that are running on a swarm overlay network. I was able to get it to work for the default bridge driver but when I use an overlay driver, which is what I need, it either fails with
docker: Error response from daemon: attaching to network failed, make sure your network options are correct and check manager logs: context deadline exceeded.
or
Error response from daemon: network inet6 not found
These are the commands I used as I was testing it.
docker network create --ipv6 --subnet fd40:88d5:2805::/48 --driver overlay --attachable inet6
docker run --rm -it --network inet6 debian /bin/bash
Docker version output
Client: Docker Engine - Community
Version: 26.1.2
API version: 1.45
Go version: go1.21.10
Git commit: 211e74b
Built: Wed May 8 13:59:58 2024
OS/Arch: linux/amd64
Context: defaultServer: Docker Engine - Community
Engine:
Version: 26.1.2
API version: 1.45 (minimum version 1.24)
Go version: go1.21.10
Git commit: ef1912d
Built: Wed May 8 13:59:58 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.31
GitCommit: e377cd56a71523140ca6ae87e30244719194a521
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0