portainer_service_tasks
List tasks for a Docker service to reveal state, node, and error details, helping diagnose why replicas are not starting.
Instructions
List a service's tasks with state, node and error (docker service ps).
The first place to look when replicas are not coming up: a task's
error carries the scheduler / container start failure ("no suitable
node", "task: non-zero exit (1)", image pull errors, ...).
Args: service_id: Service ID or name limit: Max tasks to return, newest per slot first (default 50, max 500) endpoint_id: Target endpoint ID (uses default if omitted)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| service_id | Yes | ||
| endpoint_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |