github.com/yogeshlonkar/moby@v1.13.2-0.20201203103638-c0b64beaea94/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  ## Description
    31  
    32  Lists the tasks that are running as part of the specified stack. This
    33  command has to be run targeting a manager node.
    34  
    35  ## Examples
    36  
    37  ```bash
    38  $ docker stack ps
    39  ```
    40  
    41  ### Filtering
    42  
    43  The filtering flag (`-f` or `--filter`) format is a `key=value` pair. If there
    44  is more than one filter, then pass multiple flags (e.g. `--filter "foo=bar" --filter "bif=baz"`).
    45  Multiple filter flags are combined as an `OR` filter. For example,
    46  `-f name=redis.1 -f name=redis.7` returns both `redis.1` and `redis.7` tasks.
    47  
    48  The currently supported filters are:
    49  
    50  * id
    51  * name
    52  * desired-state
    53  
    54  ## Related commands
    55  
    56  * [stack deploy](stack_deploy.md)
    57  * [stack ls](stack_ls.md)
    58  * [stack rm](stack_rm.md)
    59  * [stack services](stack_services.md)