Resource limits: CPU, memory, swap and processes
Select an icon to see what it is.
Step 5 of 6
--pids-limit stops fork bombs
--pids-limit 100 sets pids.max to 100. When the container already has 100 processes or threads, the next fork fails with a resource temporarily unavailable error. Only that container is affected and the host keeps working.
/sys/fs/cgroup/system.slice/docker-a3b4c5d6e7f80910a3b4c5d6e7f80910a3b4c5d6e7f80910a3b4c5d6e7f80910.scope (systemd cgroup driver)
pids.max 100pids.current 100fork fails with EAGAIN: Resource temporarily unavailable