mirror of https://github.com/docker/cli.git
support docker node ps multiNodes
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
a179b5f518
commit
47e0458ffb
|
@ -792,7 +792,7 @@ __docker_node_commands() {
|
||||||
"ls:List nodes in the swarm"
|
"ls:List nodes in the swarm"
|
||||||
"promote:Promote a node as manager in the swarm"
|
"promote:Promote a node as manager in the swarm"
|
||||||
"rm:Remove one or more nodes from the swarm"
|
"rm:Remove one or more nodes from the swarm"
|
||||||
"ps:List tasks running on a node, defaults to current node"
|
"ps:List tasks running on one or more nodes, defaults to current node"
|
||||||
"update:Update a node"
|
"update:Update a node"
|
||||||
)
|
)
|
||||||
_describe -t docker-node-commands "docker node command" _docker_node_subcommands
|
_describe -t docker-node-commands "docker node command" _docker_node_subcommands
|
||||||
|
|
|
@ -115,7 +115,7 @@ read the [`dockerd`](dockerd.md) reference page.
|
||||||
| [node demote](node_demote.md) | Demotes an existing manager so that it is no longer a manager |
|
| [node demote](node_demote.md) | Demotes an existing manager so that it is no longer a manager |
|
||||||
| [node inspect](node_inspect.md) | Inspect a node in the swarm |
|
| [node inspect](node_inspect.md) | Inspect a node in the swarm |
|
||||||
| [node update](node_update.md) | Update attributes for a node |
|
| [node update](node_update.md) | Update attributes for a node |
|
||||||
| [node ps](node_ps.md) | List tasks running on a node |
|
| [node ps](node_ps.md) | List tasks running on one or more nodes |
|
||||||
| [node ls](node_ls.md) | List nodes in the swarm |
|
| [node ls](node_ls.md) | List nodes in the swarm |
|
||||||
| [node rm](node_rm.md) | Remove one or more nodes from the swarm |
|
| [node rm](node_rm.md) | Remove one or more nodes from the swarm |
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@ parent = "smn_cli"
|
||||||
# node ps
|
# node ps
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
Usage: docker node ps [OPTIONS] [NODE]
|
Usage: docker node ps [OPTIONS] [NODE...]
|
||||||
|
|
||||||
List tasks running on a node, defaults to current node.
|
List tasks running on one or more nodes, defaults to current node.
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-a, --all Display all instances
|
-a, --all Display all instances
|
||||||
|
|
Loading…
Reference in New Issue