PID limit
A cap on how many processes a container may run at the same time.
Without it, one container can stop every other process on the host from starting.
In more detail
A bug or an attack that keeps starting new processes (a fork bomb) can exhaust the process table of the whole host. --pids-limit writes the pids.max control group file so the kernel refuses new processes past that number, and only that container is affected.
Related terms
- control group — A Linux kernel feature that limits how much memory, processor time and other resources a group of processes may use.
- resource limit — A cap on how much memory, processor time or number of processes a container may use.
- process ID — The number the kernel gives each running process so it can be told apart from all the others.
Taught in
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Harden And Deliver The Complete Service Stack — Docker Architecture & Production Containers