container_pause
Suspend all processes in a running container to stop CPU usage while preserving memory and open files. Resume later with unpause.
Instructions
Suspend all processes in a container using the kernel freezer cgroup.
Unlike sending SIGSTOP, the freezer cgroup suspends processes without their being able
to observe or intercept the suspension. A paused container keeps its resources (memory,
open file descriptors) but consumes no CPU. Resume with container_unpause -
container_exec fails against a paused container until it is unpaused.
Returns: dict: The container's full inspect payload after pause (State.Paused true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |