mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
docker-swarm: add page (#4873)
This commit is contained in:
parent
7ce46610ae
commit
3b39f650fe
1 changed files with 32 additions and 0 deletions
32
pages/common/docker-swarm.md
Normal file
32
pages/common/docker-swarm.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# 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 {{worker|manager}}`
|
||||
|
||||
- Join a new node to the cluster:
|
||||
|
||||
`docker swarm join --token {{token}} {{manager_node_url:2377}}`
|
||||
|
||||
- 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 {{hours}}h{{minutes}}m{{seconds}}s`
|
Loading…
Add table
Reference in a new issue