【发布时间】:2022-06-20 08:32:51
【问题描述】:
我想试试docker swarm 的能力。
当我运行命令docker swarm init 时,我收到错误消息:
could not choose an IP address to advertise since this system has multiple addresses on different interfaces (1.1.1.1 on enp89s0 and 2.2.2.2 on eno2) - specify on with the --advertise-addr
然后我尝试了这个命令docker swarm init --advertise-addr eno2,但这给出了错误:
Error response from daemon: interface eno2 has more than one IPv6 address (1111:1111::1111:1111:1111:1111 and 2222::2222:2222:2222:2222)
我还有一个额外的挑战,即我的 IPv6 和 IPv4 地址有时会随机更改。我更喜欢使用不提及任何特定 IP 地址的参数运行 docker swarm init。我可以只使用网络接口名称和/或我的网络的其他常量属性名称来启动 docker swarm 吗?
还有谁知道 docker swarm 在 IP 地址变化时是否会稳定?
【问题讨论】:
标签: docker