Examples (7)
Initialize a swarm cluster
Display the token to join a manager or a worker
docker swarm join-token worker|managerJoin a new node to the cluster
docker swarm join --token token manager_node_url:2377Remove a worker from the swarm (run inside the worker node)
Display the current CA certificate in PEM format
docker swarm caRotate the current CA certificate and display the new certificate
docker swarm ca --rotateChange the valid period for node certificates
docker swarm update --cert-expiry hourshminutesmsecondssmade by @shridhargupta | data from tldr-pages