Skip to content
Opsfolk

Under the hood, topic 6 of 41

cgroups

Control groups limit and count what a group of processes uses: CPU time, memory, I/O and the number of processes. Where namespaces decide what a container sees, cgroups decide how much it may take.

Docker's --memory and --cpus flags write cgroup limits. A container that goes past its memory limit is killed by the kernel's OOM killer, which is the usual reason a container exits with code 137.

On Opsfolk

Nothing of ours for this topic yet: an article is on its way.

Elsewhere

Your progress