docker swarm
A container orchestration tool. More information: https://docs.docker.com/engine/swarm/.
- Initialize a swarm cluster:
docker swarm init
- Display the token to join a manager or a worker:
docker swarm join-token
- Join a new node to the cluster:
docker swarm join --token
- Remove a worker from the swarm (run inside the worker node):
docker swarm leave
- Display the current CA certificate in PEM format:
docker swarm ca
- Rotate the current CA certificate and display the new certificate:
docker swarm ca --rotate
- Change the valid period for node certificates:
docker swarm update --cert-expiry hms
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
