docker stack ps

Description

List the tasks in the stack

Usage

docker stack ps [OPTIONS] STACK

Options

Name, shorthand Default Description
--filter, -f Filter output based on conditions provided
--no-resolve false Do not map IDs to Names
--no-trunc false Do not truncate output

Parent command

Command Description
docker stack Manage Docker stacks
Command Description
docker stack deploy Deploy a new stack or update an existing stack
docker stack ls List stacks
docker stack ps List the tasks in the stack
docker stack rm Remove the stack
docker stack services List the services in the stack

Extended description

Lists the tasks that are running as part of the specified stack. This command has to be run targeting a manager node.

Examples

$ 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

© 2017 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
https://docs.docker.com/v1.13/engine/reference/commandline/stack_ps/