2016-10-14 15:30:36 -07:00
|
|
|
---
|
|
|
|
title: "stack ps"
|
|
|
|
description: "The stack ps command description and usage"
|
|
|
|
keywords: ["stack, ps"]
|
|
|
|
advisory: "experimental"
|
|
|
|
---
|
2016-07-19 18:32:44 +02:00
|
|
|
|
2016-10-13 15:03:08 -04:00
|
|
|
# stack ps (experimental)
|
2016-07-19 18:32:44 +02:00
|
|
|
|
|
|
|
```markdown
|
2016-10-13 15:03:08 -04:00
|
|
|
Usage: docker stack ps [OPTIONS] STACK
|
2016-07-19 18:32:44 +02:00
|
|
|
|
|
|
|
List the tasks in the stack
|
|
|
|
|
|
|
|
Options:
|
|
|
|
-a, --all Display all tasks
|
|
|
|
-f, --filter value Filter output based on conditions provided
|
|
|
|
--no-resolve Do not map IDs to Names
|
2016-10-13 15:03:08 -04:00
|
|
|
--no-trunc Do not truncate output
|
2016-07-19 18:32:44 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
Lists the tasks that are running as part of the specified stack. This
|
|
|
|
command has to be run targeting a manager node.
|
|
|
|
|
|
|
|
## Filtering
|
|
|
|
|
|
|
|
The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there
|
|
|
|
is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`).
|
|
|
|
Multiple filter flags are combined as an `OR` filter. For example,
|
|
|
|
`-f name=redis.1 -f name=redis.7` returns both `redis.1` and `redis.7` tasks.
|
|
|
|
|
|
|
|
The currently supported filters are:
|
|
|
|
|
|
|
|
* [id](#id)
|
|
|
|
* [name](#name)
|
|
|
|
* [desired-state](#desired-state)
|
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [stack config](stack_config.md)
|
|
|
|
* [stack deploy](stack_deploy.md)
|
|
|
|
* [stack rm](stack_rm.md)
|
2016-07-20 18:54:48 +02:00
|
|
|
* [stack services](stack_services.md)
|
2016-06-23 05:00:21 +00:00
|
|
|
* [stack ls](stack_ls.md)
|