docs:virtualizacion:docker:swarm

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

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 rodolfodocs: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://kerneltalks.com/virtualization/docker-swarm-cheat-sheet/|Docker swarm cheat-sheet]]
 +
 +Docker swarm is cluster environment for [[https://kerneltalks.com/virtualization/what-is-docker-introduction-guide-to-docker/|docker containers]]. Swarm is created with number of machines running docker daemons. Collectively they are managed by one master node to run clustered environment for containers!
 +
 +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://kerneltalks.com/category/docker/|related articles here from KernelTalk’s archives]].
  
 ===== 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 +''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. +''docker swarm join-token'' : Lists join security token to join another node in swarm as worker or manager 
-–rotate : Rotate (change) token for security reasons. +  –quite : Only display token. By default it displays complete command to be used along with token. 
-docker swarm join : Join already running swarm as a worker or manager +  –rotate : Rotate (change) token for security reasons. 
-–token : Security token to join swarm + 
-–availability : Mark node’s status as active/drain/pause after joining +''docker swarm join'' : Join already running swarm as a worker or manager 
-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/drain/pause after joining 
-docker swarm unlock : Unlocks swarm by providing key after manager restarts + 
-docker swarm unlock-key : Display swarm unlock key +''docker swarm leave'' : Leave swarm. To be run from node itself 
--q : Only display token. +  * //-f// : Leave forcefully ignoring all warnings. 
-–rotate : Rotate (change) token for security reasons. + 
-docker swarm update : Updates swarm configurations +''docker swarm unlock'' : Unlocks swarm by providing key after manager restarts 
-–autolock : true/false. Turns on or off locking if not done while initiating.+ 
 +''docker swarm unlock-key'' : Display swarm unlock key 
 +  * //-q// : Only display token. 
 +  * //–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.
  
 ===== Docker swarm node commands for swarm node management ===== ===== Docker swarm node commands for swarm node management =====
  • docs/virtualizacion/docker/swarm.txt
  • Última modificación: 2021/04/30 18:04
  • por rodolfo