command: docker stack ps short: List the tasks in the stack long: |- Lists the tasks that are running as part of the specified stack. This command has to be run targeting a manager node. usage: docker stack ps [OPTIONS] STACK pname: docker stack plink: docker_stack.yaml options: - option: filter shorthand: f description: Filter output based on conditions provided - option: no-resolve default_value: "false" description: Do not map IDs to Names - option: no-trunc default_value: "false" description: Do not truncate output examples: |- ```bash $ docker stack ps ``` ### 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 * name * desired-stat