container_pause
Suspend all processes in a container using the kernel freezer cgroup, halting CPU usage while preserving memory and file descriptors. Resume with the unpause counterpart.
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.
args: id_or_name - The container id or name returns: dict - The container's full inspect payload after pause (State.Paused true)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id_or_name | Yes |