From 9deeffcd8da3fc39a066dab8a9d6aa288069c22d Mon Sep 17 00:00:00 2001 From: test2 Date: Thu, 2 Apr 2020 00:33:46 +0300 Subject: [PATCH] swarm --- DockerSwarm/Creaate-Swarm.adoc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/DockerSwarm/Creaate-Swarm.adoc b/DockerSwarm/Creaate-Swarm.adoc index 5149a84..03d1a9d 100644 --- a/DockerSwarm/Creaate-Swarm.adoc +++ b/DockerSwarm/Creaate-Swarm.adoc @@ -156,4 +156,25 @@ You can use the *--force* option on a manager to remove it from the swarm. ==== The safe way to remove a manager from a swarm is to *demote* it to a worker and then direct it to leave the quorum without using --force +---- +docker node demote id +---- + + ==== + + + +== Manage nodes + +- *docker node demote* Demote one or more nodes from manager in the swarm +- *docker node inspect* Display detailed information on one or more nodes +- *docker node ls* List nodes in the swarm +- *docker node promote* Promote one or more nodes to manager in the swarm +- *docker node ps* List tasks running on one or more nodes, defaults to current node +- *docker node rm* Remove one or more nodes from the swarm +- *docker node update* Update a node + + + +