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:
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user