Commandes Linux : docker node demote

DOCKER NODE DEMOTE

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

Demote one or more nodes from manager in the swarm

 

Destituer un manager en worker (Manager Status : Reachable ou Leader -> nothing)

$ docker node demote node [node...]

Cette commande ne peut être exécutée que sur un manager du swarm.
Equivaut à :
docker node update --role worker 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              Reachable           18.06.1-ce
$ docker node demote node1
Manager node1 demoted in the swarm.
$ docker node ls
ID                            HOSTNAME            STATUS              AVAILABILITY        MANAGER STATUS      ENGINE VERSION
2tbkss0ywais935a56ejcsaj3     node1               Ready               Active                                  18.06.1-ce
pqyqmz0hs6y0yjmq93s5t64yh     node2               Ready               Active                                  18.06.1-ce
uof4dq49vyg81w6shkgsodjj6     node3               Unknown             Active                                  18.06.1-ce
gzj3ho5iu91c5blamk4hpt5d6 *   node4               Ready               Active              Leader              18.06.1-ce

 

Fermer le menu