Docker Swarm

docker swarm

Swarm Initialization

Initialize a swarm

1
docker swarm init --advertise-addr <ipaddress>:2377 --listen-addr <ipaddress>:2377

Get swarm join tokens

1
2
docker swarm join-token worker
docker swarm join-token manager

Ports

2789/udp 7946/tcp/udp 2377/tcp