Docker 默认是不开启 IPv6 支持的,在 Docker 容器或群服务中使用 IPv6 之前,您需要在 Docker 守护进程中启用 IPv6 支持。之后,您可以选择对任何容器、服务或网络使用 IPv4 或 IPv6(或两者)
https://subnettingpractice.com/ipv6-subnet-calculator.html

To get at least 4 new subnets divide 2607:f0d0:1002:51::4/64 into 4 new subnets.
Each of these subnets is a /66 containing 0.25 /64s. The new subnets are as follows:
2607:f0d0:1002:51::/66
2607:f0d0:1002:51:4000::/66
2607:f0d0:1002:51:8000::/66
2607:f0d0:1002:51:c000::/66
注意:IPv6 网络仅在 Linux 主机上运行的 Docker 守护程序上受支持。
编辑/etc/docker/daemon.json,将ipv6密钥设置为true和fixed-cidr-v6您的 IPv6 子网的密钥。在此示例中,我们将其设置为2607:f0d0:1002:51::/66
{
"experimental": true,
"ipv6": true,
"ip6tables": true,
"fixed-cidr-v6"