stack_services
List services of a Docker stack, returning per-service replica counts, images, and ports as structured JSON data for easy inspection.
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 RuntimeError 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 |