зеркало из https://github.com/microsoft/docker.git
node rm can be applied on not only active node
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
Родитель
bcdce2a6b0
Коммит
002262d6f5
|
@ -6176,7 +6176,7 @@ paths:
|
|||
required: true
|
||||
- name: "force"
|
||||
in: "query"
|
||||
description: "Force remove an active node"
|
||||
description: "Force remove a node from the swarm"
|
||||
default: false
|
||||
type: "boolean"
|
||||
tags:
|
||||
|
|
|
@ -29,7 +29,7 @@ func newRemoveCommand(dockerCli *command.DockerCli) *cobra.Command {
|
|||
},
|
||||
}
|
||||
flags := cmd.Flags()
|
||||
flags.BoolVar(&opts.force, "force", false, "Force remove an active node")
|
||||
flags.BoolVar(&opts.force, "force", false, "Force remove a node from the swarm")
|
||||
return cmd
|
||||
}
|
||||
|
||||
|
|
|
@ -818,7 +818,7 @@ __docker_node_subcommand() {
|
|||
(rm|remove)
|
||||
_arguments $(__docker_arguments) \
|
||||
$opts_help \
|
||||
"($help)--force[Force remove an active node]" \
|
||||
"($help)--force[Force remove a node from the swarm]" \
|
||||
"($help -)*:node:__docker_complete_pending_nodes" && ret=0
|
||||
;;
|
||||
(demote)
|
||||
|
|
|
@ -4064,7 +4064,7 @@ Remove a node [`id`] from the swarm.
|
|||
|
||||
**Query parameters**:
|
||||
|
||||
- **force** - 1/True/true or 0/False/false, Force remove an active node.
|
||||
- **force** - 1/True/true or 0/False/false, Force remove a node from the swarm.
|
||||
Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
|
|
@ -4589,7 +4589,7 @@ Remove a node [`id`] from the swarm.
|
|||
|
||||
**Query parameters**:
|
||||
|
||||
- **force** - 1/True/true or 0/False/false, Force remove an active node.
|
||||
- **force** - 1/True/true or 0/False/false, Force remove a node from the swarm.
|
||||
Default `false`.
|
||||
|
||||
**Status codes**:
|
||||
|
|
|
@ -24,7 +24,7 @@ Aliases:
|
|||
rm, remove
|
||||
|
||||
Options:
|
||||
--force Force remove an active node
|
||||
--force Force remove a node from the swarm
|
||||
--help Print usage
|
||||
```
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче