docs:virtualizacion:docker:swarm

Diferencias

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

Enlace a la vista de comparación

Ambos lados, revisión anterior Revisión previa
Próxima revisión
Revisión previa
Próxima revisiónAmbos lados, revisión siguiente
docs:virtualizacion:docker:swarm [2019/06/03 18:33] rodolfodocs:virtualizacion:docker:swarm [2021/04/30 17:56] rodolfo
Línea 8: Línea 8:
  
 Read all docker or containerization [[https://kerneltalks.com/category/docker/|related articles here from KernelTalk’s archives]]. Read all docker or containerization [[https://kerneltalks.com/category/docker/|related articles here from KernelTalk’s archives]].
 +
 +[[https://onoya.dev/docker-swarm-cluster-digitalocean/|Docker Swarm at DigitalOcean]]
  
 ===== Swarm management ===== ===== Swarm management =====
Línea 65: Línea 67:
   * //–role// : worker/manager. Update node role   * //–role// : worker/manager. Update node role
   * //–availability// : active/pause/drain. Set node state.   * //–availability// : active/pause/drain. Set node state.
 +
 +===== Stack management =====
 +
 +With stacks it is possible to manage application composed by a group of services.
 +
 +''docker stack deploy --compose-file stack.yaml stack_name'' : Deploy new stack in the cluster
 +  * //-c, --compose-file strings// : Path to a Compose file, or "-" to read from stdin
 +  * //--orchestrator string// : Orchestrator to use (swarm|kubernetes|all)
 +  * //--prune// : Prune services that are no longer referenced
 +  * //--resolve-image string   Query the registry to resolve image digest and supported platforms ("always"|"changed"|"never") (default "always")
 +  * //--with-registry-auth// : Send registry authentication details to Swarm agents
 +
 +
 +
 +
  
 ===== Service management ===== ===== Service management =====
Línea 70: Línea 87:
 Docker service is used to create and spawn workloads to swarm nodes. Docker service is used to create and spawn workloads to swarm nodes.
  
-//docker service create// : Start new service in Docker swarm+''docker service create'' : Start new service in Docker swarm 
 Switches of docker container run command like //-i// (interactive), //-t// (pseud terminal), //-d// (detached), //-p// (publish port) etc supported here. Switches of docker container run command like //-i// (interactive), //-t// (pseud terminal), //-d// (detached), //-p// (publish port) etc supported here.
  
Línea 85: Línea 103:
  
 ''docker service update'' : Update service config ''docker service update'' : Update service config
 +
 Most of the parameters defined in service create command can be updated here. Most of the parameters defined in service create command can be updated here.
  
Línea 90: Línea 109:
  
 ''docker service scale'' : Scale one or more replicated services. ''docker service scale'' : Scale one or more replicated services.
 +
 servicename=number format servicename=number format
  
 ''docker service inspect'' : Detailed in formation about service. ''docker service inspect'' : Detailed in formation about service.
  
  • docs/virtualizacion/docker/swarm.txt
  • Última modificación: 2021/04/30 18:04
  • por rodolfo