给docker容器分配ipv6地址还是用内网ipv6吧 /etc/docker/daemon.json 12345{ "ipv6": true, "fixed-cidr-v6": "fd00:cafe::/64", "ip6tables": true} 12sudo sysctl -w net.ipv6.conf.all.forwarding=1sudo ip6tables -t nat -A POSTROUTING -s fd00:cafe::/64 -o eth0 -j MASQUERADE 之后正常创建容器即可