2016-10-14 18:30:36 -04:00
|
|
|
---
|
|
|
|
title: "stack ps"
|
|
|
|
description: "The stack ps command description and usage"
|
2016-11-03 18:48:30 -04:00
|
|
|
keywords: "stack, ps"
|
2016-10-14 18:30:36 -04:00
|
|
|
---
|
2016-07-19 12:32:44 -04:00
|
|
|
|
2016-10-19 13:25:45 -04:00
|
|
|
<!-- This file is maintained within the docker/docker Github
|
|
|
|
repository at https://github.com/docker/docker/. Make all
|
|
|
|
pull requests against that repo. If you see this file in
|
|
|
|
another repository, consider it read-only there, as it will
|
|
|
|
periodically be overwritten by the definitive file. Pull
|
|
|
|
requests which include edits to this file in other repositories
|
|
|
|
will be rejected.
|
|
|
|
-->
|
|
|
|
|
2016-11-23 05:14:38 -05:00
|
|
|
# stack ps
|
2016-07-19 12:32:44 -04:00
|
|
|
|
|
|
|
```markdown
|
2016-10-13 15:03:08 -04:00
|
|
|
Usage: docker stack ps [OPTIONS] STACK
|
2016-07-19 12:32:44 -04:00
|
|
|
|
|
|
|
List the tasks in the stack
|
|
|
|
|
|
|
|
Options:
|
2016-12-26 16:47:43 -05:00
|
|
|
-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
|
2016-07-19 12:32:44 -04: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:
|
|
|
|
|
2016-10-19 12:10:59 -04:00
|
|
|
* id
|
|
|
|
* name
|
|
|
|
* desired-state
|
2016-07-19 12:32:44 -04:00
|
|
|
|
|
|
|
## Related information
|
|
|
|
|
|
|
|
* [stack deploy](stack_deploy.md)
|
2016-12-30 11:09:49 -05:00
|
|
|
* [stack ls](stack_ls.md)
|
2016-07-19 12:32:44 -04:00
|
|
|
* [stack rm](stack_rm.md)
|
2016-07-20 12:54:48 -04:00
|
|
|
* [stack services](stack_services.md)
|