mirror of https://github.com/docker/cli.git
parent
6fbb9227cb
commit
d398440f03
|
@ -2550,7 +2550,7 @@ _docker_service_ps() {
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--all -a --filter -f --help --no-resolve --no-trunc" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--filter -f --help --no-resolve --no-trunc --quiet -q" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
local counter=$(__docker_pos_first_nonflag '--filter|-f')
|
local counter=$(__docker_pos_first_nonflag '--filter|-f')
|
||||||
|
|
|
@ -1167,10 +1167,10 @@ __docker_service_subcommand() {
|
||||||
(ps)
|
(ps)
|
||||||
_arguments $(__docker_arguments) \
|
_arguments $(__docker_arguments) \
|
||||||
$opts_help \
|
$opts_help \
|
||||||
"($help -a --all)"{-a,--all}"[Display all tasks]" \
|
|
||||||
"($help)*"{-f=,--filter=}"[Provide filter values]:filter:->filter-options" \
|
"($help)*"{-f=,--filter=}"[Provide filter values]:filter:->filter-options" \
|
||||||
"($help)--no-resolve[Do not map IDs to Names]" \
|
"($help)--no-resolve[Do not map IDs to Names]" \
|
||||||
"($help)--no-trunc[Do not truncate output]" \
|
"($help)--no-trunc[Do not truncate output]" \
|
||||||
|
"($help -q --quiet)"{-q,--quiet}"[Only display task IDs]" \
|
||||||
"($help -)1:service:__docker_complete_services" && ret=0
|
"($help -)1:service:__docker_complete_services" && ret=0
|
||||||
case $state in
|
case $state in
|
||||||
(filter-options)
|
(filter-options)
|
||||||
|
|
|
@ -17,22 +17,21 @@ aliases: ["/engine/reference/commandline/service_tasks/"]
|
||||||
# service ps
|
# service ps
|
||||||
|
|
||||||
```Markdown
|
```Markdown
|
||||||
Usage: docker service ps [OPTIONS] SERVICE
|
Usage: docker service ps [OPTIONS] SERVICE
|
||||||
|
|
||||||
List the tasks of a service
|
List the tasks of a service
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
-a, --all Display all tasks
|
-f, --filter filter Filter output based on conditions provided
|
||||||
-f, --filter value Filter output based on conditions provided
|
--help Print usage
|
||||||
--help Print usage
|
--no-resolve Do not map IDs to Names
|
||||||
--no-resolve Do not map IDs to Names
|
--no-trunc Do not truncate output
|
||||||
--no-trunc Do not truncate output
|
-q, --quiet Only display task IDs
|
||||||
```
|
```
|
||||||
|
|
||||||
Lists the tasks that are running as part of the specified service. This command
|
Lists the tasks that are running as part of the specified service. This command
|
||||||
has to be run targeting a manager node.
|
has to be run targeting a manager node.
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Listing the tasks that are part of a service
|
### Listing the tasks that are part of a service
|
||||||
|
|
Loading…
Reference in New Issue