stack_ps
List tasks of a Docker stack, showing ID, name, node, image, and desired/current states. Supports truncation and filter options.
Instructions
List the tasks of a stack, parsed from --format '{{json .}}'.
args:
stack_name - The stack to list tasks for
no_trunc - Do not truncate task IDs / errors in the output
filters - Repeatable --filter expressions, e.g. ["desired-state=running"]
returns: list - One dict per task (id, name, node, image, desired/current state, error)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filters | No | ||
| no_trunc | No | ||
| stack_name | Yes |