github.com/brahmaroutu/docker@v1.2.1-0.20160809185609-eb28dde01f16/docs/reference/commandline/stack_tasks.md (about) 1 <!--[metadata]> 2 +++ 3 title = "stack tasks" 4 description = "The stack tasks command description and usage" 5 keywords = ["stack, tasks"] 6 advisory = "experimental" 7 [menu.main] 8 parent = "smn_cli" 9 +++ 10 <![end-metadata]--> 11 12 # stack tasks (experimental) 13 14 ```markdown 15 Usage: docker stack tasks [OPTIONS] STACK 16 17 List the tasks in the stack 18 19 Options: 20 -a, --all Display all tasks 21 -f, --filter value Filter output based on conditions provided 22 --help Print usage 23 --no-resolve Do not map IDs to Names 24 ``` 25 26 Lists the tasks that are running as part of the specified stack. This 27 command has to be run targeting a manager node. 28 29 ## Filtering 30 31 The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there 32 is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`). 33 Multiple filter flags are combined as an `OR` filter. For example, 34 `-f name=redis.1 -f name=redis.7` returns both `redis.1` and `redis.7` tasks. 35 36 The currently supported filters are: 37 38 * [id](#id) 39 * [name](#name) 40 * [desired-state](#desired-state) 41 42 ## Related information 43 44 * [stack config](stack_config.md) 45 * [stack deploy](stack_deploy.md) 46 * [stack rm](stack_rm.md) 47 * [stack services](stack_services.md)