stack_list
List all Docker Swarm stacks deployed to the cluster, showing name, service count, and orchestrator. Requires a swarm manager.
Instructions
List the stacks deployed to the swarm, parsed from --format '{{json .}}'.
Requires the target daemon to be a swarm manager. compose_list is the non-swarm equivalent;
drill into one stack with stack_services.
Raises RuntimeError if the CLI call fails.
returns: list - One dict per stack (name, services count, orchestrator)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||