stack_services
List all services in a Docker stack, showing ID, name, mode, replicas, image, and ports. Filter by attributes to pinpoint specific services, helping monitor stack health and resolve configuration issues quickly.
Instructions
List the services of a stack, parsed from --format '{{json .}}'.
Service-level rollup (replicas ready per service); use stack_ps for individual tasks and
service_inspect for one service's full spec. Requires a swarm manager.
Raises RemoteFailureError if the CLI call fails.
Args: name: The stack to list services for filters: Filter by attributes, e.g. {"name": "web"}; a list value repeats the filter
Returns: list: One dict per service (id, name, mode, replicas, image, ports)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| filters | No |