mirror of https://github.com/docker/cli.git
make node ps default to self in swarm node
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
b0b59a7e35
commit
4d1fc99027
|
@ -792,7 +792,7 @@ __docker_node_commands() {
|
|||
"ls:List nodes in the swarm"
|
||||
"promote:Promote a node as manager in the swarm"
|
||||
"rm:Remove one or more nodes from the swarm"
|
||||
"ps:List tasks running on a node"
|
||||
"ps:List tasks running on a node, defaults to current node"
|
||||
"update:Update a node"
|
||||
)
|
||||
_describe -t docker-node-commands "docker node command" _docker_node_subcommands
|
||||
|
|
|
@ -12,9 +12,9 @@ parent = "smn_cli"
|
|||
# node ps
|
||||
|
||||
```markdown
|
||||
Usage: docker node ps [OPTIONS] self|NODE
|
||||
Usage: docker node ps [OPTIONS] [NODE]
|
||||
|
||||
List tasks running on a node
|
||||
List tasks running on a node, defaults to current node.
|
||||
|
||||
Options:
|
||||
-a, --all Display all instances
|
||||
|
|
Loading…
Reference in New Issue