Docker swarm can't initialize a manager in 1.12 using native swarm commands


#1

Here’s what I’m running on my node:

root@manager-1:~# docker swarm init --advertise-addr 212.43.230.112 --listen-addr 212.43.230.112:2377

Error response from daemon: listen tcp 212.43.230.112:2377: bind: cannot assign requested address

That’s my error. Any ideas why I can’t bind the requested address?


I’ve tried to bind to 0.0.0.0 but the result is much of the same.

$ docker swarm init --advertise-addr 0.0.0.0 --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


#2

The servers are behind a NAT, they only know their private IP. Try to bind to 0.0.0.0


#3

I get this when I try that
$ docker swarm init --advertise-addr 0.0.0.0 --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