Signed-off-by: Ce Gao <ce.gao@outlook.com>
This commit is contained in:
Ce Gao
2016-10-28 08:02:57 +08:00
committed by Tibor Vass
parent 6fbb9227cb
commit d398440f03
3 changed files with 8 additions and 9 deletions

View File

@ -17,22 +17,21 @@ aliases: ["/engine/reference/commandline/service_tasks/"]
# service ps
```Markdown
Usage: docker service ps [OPTIONS] SERVICE
Usage: docker service ps [OPTIONS] SERVICE
List the tasks of a service
Options:
-a, --all Display all tasks
-f, --filter value Filter output based on conditions provided
--help Print usage
--no-resolve Do not map IDs to Names
--no-trunc Do not truncate output
-f, --filter filter Filter output based on conditions provided
--help Print usage
--no-resolve Do not map IDs to Names
--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
has to be run targeting a manager node.
## Examples
### Listing the tasks that are part of a service