docker-swarm

A container orchestration tool.

TLDR

Initialize a swarm cluster

$ docker swarm init
copy

Display the token to join a manager or a worker

$ docker swarm join-token [worker|manager]
copy

Join a new node to the cluster

$ docker swarm join --token [token] [manager_node_url:2377]
copy

Remove a worker from the swarm (run inside the worker node)

$ docker swarm leave
copy

Display the current CA certificate in PEM format

$ docker swarm ca
copy

Rotate the current CA certificate and display the new certificate

$ docker swarm ca --rotate
copy

Change the valid period for node certificates

$ docker swarm update --cert-expiry [hours]h[minutes]m[seconds]s
copy

Copied to clipboard
free 100$ digital ocean credit