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 + + + +