diff --git a/cli/command/swarm/leave.go b/cli/command/swarm/leave.go index 1ffaa3fcc9..e2cfa0a045 100644 --- a/cli/command/swarm/leave.go +++ b/cli/command/swarm/leave.go @@ -19,7 +19,7 @@ func newLeaveCommand(dockerCli *command.DockerCli) *cobra.Command { cmd := &cobra.Command{ Use: "leave [OPTIONS]", - Short: "Leave the swarm (workers only)", + Short: "Leave the swarm", Args: cli.NoArgs, RunE: func(cmd *cobra.Command, args []string) error { return runLeave(dockerCli, opts) diff --git a/docs/reference/commandline/swarm_leave.md b/docs/reference/commandline/swarm_leave.md index 4dcccc6988..c0d9437818 100644 --- a/docs/reference/commandline/swarm_leave.md +++ b/docs/reference/commandline/swarm_leave.md @@ -18,7 +18,7 @@ keywords: "swarm, leave" ```markdown Usage: docker swarm leave [OPTIONS] -Leave the swarm (workers only) +Leave the swarm Options: -f, --force Force this node to leave the swarm, ignoring warnings