docker run --pids-limit 100 myimage

Category: Docker

docker run --pids-limit 100 myimage

Limit the number of processes the container can spawn to 100

Limits the number of processes the container can spawn to 100, preventing fork bombs.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.