stack_ps
List tasks in a Docker stack with their node, state, and error to identify where tasks run and why they failed.
Instructions
List the tasks of a stack, parsed from --format '{{json .}}'.
Task-level view across every service in the stack (service_ps covers one service): where
each task runs and why it failed. Requires a swarm manager.
Raises RemoteFailureError if the CLI call fails.
Args: name: The stack to list tasks for no_trunc: Do not truncate task IDs / errors in the output filters: Filter by attributes, e.g. {"desired-state": "running"}; a list value repeats the filter
Returns: list: One dict per task (id, name, node, image, desired/current state, error)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| filters | No | ||
| no_trunc | No |