Diferencias
Muestra las diferencias entre dos versiones de la página.
Próxima revisión | Revisión previa Próxima revisiónAmbos lados, revisión siguiente | ||
docs:virtualizacion:docker:swarm [2019/06/03 16:34] – creado rodolfo | docs:virtualizacion:docker:swarm [2019/06/03 16:41] – rodolfo | ||
---|---|---|---|
Línea 1: | Línea 1: | ||
====== Docker Swarm Cheat-Sheet ====== | ====== Docker Swarm Cheat-Sheet ====== | ||
+ | |||
+ | **Original** [[https:// | ||
+ | |||
+ | Docker swarm is cluster environment for [[https:// | ||
+ | |||
+ | In this article we are listing out all the currently available docker swarm commands in a very short overview. This is cheat sheet you can glance through to brush or your swarm knowledge or quick reference for any swarm management command. We are covering most used or useful switches with the below commands. There are more switches available for each command and you can get them with --help | ||
+ | |||
+ | Read all docker or containerization [[https:// | ||
===== Docker swarm commands for swarm management ===== | ===== Docker swarm commands for swarm management ===== | ||
Línea 5: | Línea 13: | ||
This set of command is used mainly to start, manage swarm cluster as a whole. For node management within cluster we have different set of commands following this section. | This set of command is used mainly to start, manage swarm cluster as a whole. For node management within cluster we have different set of commands following this section. | ||
- | docker swarm init : Initiate swam cluster | + | '' |
- | –advertise-addr : Advertised address on which swarm lives | + | * //–advertise-addr// : Advertised address on which swarm lives |
- | –autolock : Locks manager and display key which will be needed to unlock stopped manager | + | * //–autolock// : Locks manager and display key which will be needed to unlock stopped manager |
- | –force-new-cluster : Create new cluster from backup and dont attempt to connect to old known nodes | + | * //–force-new-cluster// : Create new cluster from backup and dont attempt to connect to old known nodes |
- | docker swarm join-token : Lists join security token to join another node in swarm as worker or manager | + | |
- | –quite : Only display token. By default it displays complete command to be used along with token. | + | '' |
- | –rotate : Rotate (change) token for security reasons. | + | |
- | docker swarm join : Join already running swarm as a worker or manager | + | |
- | –token : Security token to join swarm | + | |
- | –availability : Mark node’s status as active/ | + | '' |
- | docker swarm leave : Leave swarm. To be run from node itself | + | * //–token// : Security token to join swarm |
- | -f : Leave forcefully ignoring all warnings. | + | * //–availability// : Mark node’s status as active/ |
- | docker swarm unlock : Unlocks swarm by providing key after manager restarts | + | |
- | docker swarm unlock-key : Display swarm unlock key | + | '' |
- | -q : Only display token. | + | * //-f// : Leave forcefully ignoring all warnings. |
- | –rotate : Rotate (change) token for security reasons. | + | |
- | docker swarm update : Updates swarm configurations | + | '' |
- | –autolock : true/false. Turns on or off locking if not done while initiating. | + | |
+ | '' | ||
+ | * //-q// : Only display token. | ||
+ | * //–rotate// : Rotate (change) token for security reasons. | ||
+ | |||
+ | '' | ||
+ | * //–autolock// : true/false. Turns on or off locking if not done while initiating. | ||
===== Docker swarm node commands for swarm node management ===== | ===== Docker swarm node commands for swarm node management ===== |