1
0
mirror of https://github.com/docker/cli.git synced 2026-01-13 18:22:35 +03:00

Merge pull request #29482 from thaJeztah/not-for-workers-only

swarm leave is not only for workers
Upstream-commit: 87e8828dffb29c351486e1e286c597cef238c5d1
Component: engine
This commit is contained in:
Aaron Lehmann
2016-12-16 09:48:35 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

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