Merge pull request #27654 from gaocegege/add-quiet-mode-to-service-ps

Add -q option to `docker service ps`
Upstream-commit: 89011970e04614dd285ea4c3423ec7a86602488b
Component: engine
This commit is contained in:
Vincent Demeester
2016-10-28 05:21:03 +02:00
committed by GitHub
5 changed files with 39 additions and 12 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