Swarm Mode

Swarm Mode

[1] Swarm mode overview | Docker Documentation ( ()) <https://docs.docker.com/engine/swarm/>

[2] Get Started, Part 4: Swarms | Docker Documentation ( ()) <https://docs.docker.com/get-started/part4/>

[3] docker swarm init --advertise-addr 172.17.0.1 doesn't work · Issue #25514 · moby/moby () <https://github.com/moby/moby/issues/25514>

[4] ローカルで開発用に動かしたいだけなのに

Error response from daemon: could not choose an IP address to advertise since this system has multiple addresses on different interfaces (10.0.2.1 on enp0s4 and 192.168.56.1 on enp0s8) - specify one with --advertise-addr

とか言われて面倒くさいときは docker swarm init --advertise-addr 127.0.0.1 すればよい。