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