From 021a712fcb59e53650215b7342c7a32b087e5c5f Mon Sep 17 00:00:00 2001 From: Misty Stanley-Jones Date: Tue, 7 Feb 2017 10:09:32 -0800 Subject: [PATCH] Add info about the relationship between swarm leave and node rm Signed-off-by: Misty Stanley-Jones Upstream-commit: c2893a6e1cf27b4353166562d2fc1c1f46eae5a9 Component: cli --- components/cli/docs/reference/commandline/swarm_leave.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/cli/docs/reference/commandline/swarm_leave.md b/components/cli/docs/reference/commandline/swarm_leave.md index 7a6050f201..a08f7f80ea 100644 --- a/components/cli/docs/reference/commandline/swarm_leave.md +++ b/components/cli/docs/reference/commandline/swarm_leave.md @@ -44,11 +44,16 @@ dvfxp4zseq4s0rih1selh0d20 * manager1 Ready Active Leader ``` To remove `worker2`, issue the following command from `worker2` itself: + ```bash $ docker swarm leave Node left the default swarm. ``` -To remove an inactive node, use the [`node rm`](node_rm.md) command instead. + +The node will still appear in the node list, and marked as `down`. It no longer +affects swarm operation, but a long list of `down` nodes can clutter the node +list. To remove an inactive node from the list, use the [`node rm`](node_rm.md) +command. ## Related information