[英]Docker swarm and ipv6 on node
I have docker cluster. 我有docker集群。
version: "3.2"
services:
manager:
image: busybox
networks:
- frontend
deploy:
placement:
constraints: [node.role == manager]
worker:
image: busybox
depends_on:
- manager
networks:
- frontend
deploy:
placement:
constraints: [node.label.name == hp-laptop]
networks:
frontend:
On host with label hp-laptop i have ipv6 address. 在带有hp-laptop标签的主机上,我有ipv6地址。
ping6
PING google.com(lhr.net) 56 data bytes
64 bytes from lhr.net: icmp_seq=1 ttl=57 time=36.6 ms
64 bytes from lhr.net: icmp_seq=2 ttl=57 time=30.0 ms
64 bytes from lhr.net: icmp_seq=3 ttl=57 time=30.6 ms
How i can provide ipv6 support from host (hp-laptop) to docker swarm node using docker stack configuration? 我如何使用Docker堆栈配置从主机(hp-laptop)到docker swarm节点提供ipv6支持?
IPv6 doesn't work in Overlay networks . IPv6在覆盖网络中不起作用 。 You'd have to use bridge networks.
您必须使用桥接网络。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.