Pause a container Run in API Explorer
Use the freezer cgroup to suspend all processes in a container.
Traditionally, when suspending a process the SIGSTOP
signal is used,
which is observable by the process being suspended. With the freezer
cgroup the process is unaware, and unable to capture, that it is being
suspended, and subsequently resumed.
POST
/containers/{id}/pause
curl \
--request POST 'http://api.example.com/v1.44/containers/{id}/pause'
Response examples (404)
{
"message": "No such container: c2ada9df5af8"
}
Response examples (404)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}