compose_pause
Pause all or selected containers in a Docker Compose project, freezing processes to halt CPU usage while preserving memory, network endpoints, and state until you resume them.
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 (a missing compose plugin or a timeout still raises) - 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 |