Commandes Linux : docker node promote

DOCKER NODE PROMOTE

Commande : docker node promote
Usage:	docker node promote NODE [NODE...]

Promote one or more nodes to manager in the swarm

 

Promouvoir un worker en manager (Manager Status : nothing -> Reachable)

$ docker node promote node [node...]

Cette commande ne peut être exécutée que sur un manager du swarm.
Equivaut à :
docker node update --role manager node
ex :

$ docker node ls
ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION
2tbkss0ywais935a56ejcsaj3 *   node1               Ready               Active              Leader              18.06.1-ce
pqyqmz0hs6y0yjmq93s5t64yh     node2               Ready               Active                                  18.06.1-ce
uof4dq49vyg81w6shkgsodjj6     node3               Ready               Active                                  18.06.1-ce
gzj3ho5iu91c5blamk4hpt5d6     node4               Ready               Active                                  18.06.1-ce
$ docker node promote node4
Node node4 promoted to a manager in the swarm.
$ docker node ls
ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION
2tbkss0ywais935a56ejcsaj3 *   node1               Ready               Active              Leader              18.06.1-ce
pqyqmz0hs6y0yjmq93s5t64yh     node2               Ready               Active                                  18.06.1-ce
uof4dq49vyg81w6shkgsodjj6     node3               Ready               Active                                  18.06.1-ce
gzj3ho5iu91c5blamk4hpt5d6     node4               Ready               Active              Reachable           18.06.1-ce

 

Fermer le menu
%d blogueurs aiment cette page :