如何在浮动IP之后使用docker群组模式管理器 [英] How can I use a docker swarm mode manager behind a floating IP
问题描述
某些提供商(如ScaleWay)将为您的服务器提供一个未附加到本地界面的IP。
Some providers, such as ScaleWay will give your server an IP that is not attached to a local interface on the box.
# 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群组?
How is docker swarm supposed to be setup in such an environment?
推荐答案
当绑定到非系统<$ c $时,本地群组模式
有一个问题c> IP地址作为 docker 1.12.5
。已经有多个github问题,但问题仍然存在。
There is an issue with native swarm mode
, when it comes to binding to a non system IP Address
as docker 1.12.5
. There has been multiple github issues, but the problem still persists.
定义非系统 IP地址
: IP地址
与 DNAT
等技术一起使用。这些 IP地址
不在本地界面设置,对底层操作系统可见。
To define non system IP Address
: IP Addresses
used with technologies like DNAT
. These IP Addresses
are not set on local interface and visible to underlying operating system.
这篇关于如何在浮动IP之后使用docker群组模式管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!