Skip to main content

A container orchestration tool.

# To initialize a swarm cluster:
docker swarm init

# To display the token to join a manager or a worker:
docker swarm join-token <worker|manager>

# To join a new node to the cluster:
docker swarm join --token <token> <manager_node_url:2377>

# To remove a worker from the swarm (run inside the worker node):
docker swarm leave

# To display the current CA certificate in PEM format:
docker swarm ca

# To rotate the current CA certificate and display the new certificate:
docker swarm ca --rotate

# To change the valid period for node certificates:
docker swarm update --cert-expiry <hours>h<minutes>m<seconds>s