如何在浮动IP之后使用docker群组模式管理器 [英] How can I use a docker swarm mode manager behind a floating IP

查看:666
本文介绍了如何在浮动IP之后使用docker群组模式管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些提供商(如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.

来源: link1 link2 link3

这篇关于如何在浮动IP之后使用docker群组模式管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆