【发布时间】:2018-03-20 13:02:53
【问题描述】:
我有 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:
在标签为 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
如何使用 docker stack 配置从 host (hp-laptop) 到 docker swarm node 提供 ipv6 支持?
【问题讨论】:
标签: docker ipv6 docker-swarm