compose_pause
Pause all containers in a Docker Compose project to freeze processes and stop CPU usage while preserving memory, network, and state. Resume with compose_unpause, or use compose_stop or compose_down to stop or remove containers.
Instructions
Pause the containers of a compose project (freezes their processes in place).
Paused containers stop consuming CPU but keep memory, network endpoints, and state; resume
with compose_unpause. To actually stop containers (each one's configured stop signal,
freeing resources) use compose_stop; to stop and delete them use compose_down.
Does not raise on a non-zero CLI exit — inspect returncode/stderr in the result.
args:
services - Restrict to these services (default: all)
project_dir - Dir with the compose file (default: server cwd; copied to the target host if no local plugin)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| services | No | ||
| project_dir | No | ||
| project_name | No |