github.com/fabiokung/docker@v0.11.2-0.20170222101415-4534dcd49497/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 --format string Pretty-print tasks using a Go template 26 --help Print usage 27 --no-resolve Do not map IDs to Names 28 --no-trunc Do not truncate output 29 -q, --quiet Only display task IDs 30 ``` 31 32 ## Description 33 34 Lists the tasks that are running as part of the specified stack. This 35 command has to be run targeting a manager node. 36 37 ## Examples 38 39 ```bash 40 $ docker stack ps 41 ``` 42 43 ### Filtering 44 45 The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there 46 is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`). 47 Multiple filter flags are combined as an `OR` filter. For example, 48 `-f name=redis.1 -f name=redis.7` returns both `redis.1` and `redis.7` tasks. 49 50 The currently supported filters are: 51 52 * id 53 * name 54 * desired-state 55 56 ## Related commands 57 58 * [stack deploy](stack_deploy.md) 59 * [stack ls](stack_ls.md) 60 * [stack rm](stack_rm.md) 61 * [stack services](stack_services.md)