docker swarm init --listen-addr 0.0.0.0:2377

Category: Docker

docker swarm init --listen-addr 0.0.0.0:2377

Initialize a swarm on all interfaces

Starts swarm mode, listening for join requests on port 2377 on every interface. --listen-addr sets the bind address; --advertise-addr tells workers which address to use. Managers and workers communicate over this port.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.