某些提供商(如ScaleWay)会为您的服务器提供一个未附加到本地接口的IP。
# docker swarm init --advertise-addr <my-external-ip>:2377 --listen-addr 0.0.0.0:2377
Error response from daemon: must specify a listening address
because the address to advertise is not recognized as a system address
虽然
# docker swarm init --advertise-addr eth0:2377
将宣传私人IP地址。
如何在这样的环境中设置docker swarm?