github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/docs/reference/commandline/stack_ps.md (about) 1 --- 2 title: "stack ps" 3 description: "The stack ps command description and usage" 4 keywords: "stack, ps" 5 --- 6 7 <!-- This file is maintained within the docker/docker Github 8 repository at https://github.com/docker/docker/. Make all 9 pull requests against that repo. If you see this file in 10 another repository, consider it read-only there, as it will 11 periodically be overwritten by the definitive file. Pull 12 requests which include edits to this file in other repositories 13 will be rejected. 14 --> 15 16 # stack ps 17 18 ```markdown 19 Usage: docker stack ps [OPTIONS] STACK 20 21 List the tasks in the stack 22 23 Options: 24 -f, --filter filter Filter output based on conditions provided 25 --help Print usage 26 --no-resolve Do not map IDs to Names 27 --no-trunc Do not truncate output 28 ``` 29 30 Lists the tasks that are running as part of the specified stack. This 31 command has to be run targeting a manager node. 32 33 ## Filtering 34 35 The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there 36 is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`). 37 Multiple filter flags are combined as an `OR` filter. For example, 38 `-f name=redis.1 -f name=redis.7` returns both `redis.1` and `redis.7` tasks. 39 40 The currently supported filters are: 41 42 * id 43 * name 44 * desired-state 45 46 ## Related information 47 48 * [stack deploy](stack_deploy.md) 49 * [stack ls](stack_ls.md) 50 * [stack rm](stack_rm.md) 51 * [stack services](stack_services.md)