compose_pause
Pause all or specified services in a Docker Compose project, freezing processes and stopping CPU usage while preserving memory, network, and state; containers can be resumed later with compose_unpause.
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)
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 |