github.com/noxiouz/docker@v0.7.3-0.20160629055221-3d231c78e8c5/docs/reference/commandline/swarm_leave.md (about) 1 <!--[metadata]> 2 +++ 3 title = "swarm leave" 4 description = "The swarm leave command description and usage" 5 keywords = ["swarm, leave"] 6 advisory = "rc" 7 [menu.main] 8 parent = "smn_cli" 9 +++ 10 <![end-metadata]--> 11 12 # swarm leave 13 14 Usage: docker swarm leave 15 16 Leave a Swarm swarm. 17 18 Options: 19 --help Print usage 20 21 This command causes the node to leave the swarm. 22 23 On a manager node: 24 ```bash 25 $ docker node ls 26 ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER 27 7ln70fl22uw2dvjn2ft53m3q5 worker2 Accepted Ready Active 28 dkp8vy1dq1kxleu9g4u78tlag worker1 Accepted Ready Active Reachable 29 dvfxp4zseq4s0rih1selh0d20 * manager1 Accepted Ready Active Reachable Yes 30 ``` 31 32 On a worker node: 33 ```bash 34 $ docker swarm leave 35 Node left the default swarm. 36 ``` 37 38 On a manager node: 39 ```bash 40 $ docker node ls 41 ID NAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS LEADER 42 7ln70fl22uw2dvjn2ft53m3q5 worker2 Accepted Down Active 43 dkp8vy1dq1kxleu9g4u78tlag worker1 Accepted Ready Active Reachable 44 dvfxp4zseq4s0rih1selh0d20 * manager1 Accepted Ready Active Reachable Yes 45 ``` 46 47 ## Related information 48 49 * [swarm init](swarm_init.md) 50 * [swarm join](swarm_join.md) 51 * [swarm update](swarm_update.md)