brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Unraid gives every container a limit of 2048 processes, and you can see it in Docker settings

Docker
~/tips/tip-unraid-docker-pid-limit

--pids-limit=4096

Where the process limit of containers lives in Unraid, and how to change it for one container.

A container that suddenly cannot start new processes may simply have hit its ceiling. Unraid 7 gives each container a limit on processes, 2048 by default, so a runaway app cannot take the whole server down.

You find the server value under Settings, Docker, field Docker PID Limit. Some settings on that page can only be changed with Docker stopped.

If one app needs more, raise it for that container only, in Extra Parameters:

--pids-limit=4096

Check how many processes a container uses now before you raise anything:

docker stats --no-stream --format "{{.Name}}: {{.PIDs}}"

A steadily climbing number points at an app that does not clean up its child processes. A higher limit only postpones that problem.

Further reading: Unraid 7.0.0 release notes

More Docker tips ONBUILD RUN /usr/local/bin/python-build --dir /app/src SHELL ["/bin/bash", "-c"] docker commit <container> myname/testimage:version3 docker import /path/to/exampleimage.tgz docker compose events All Docker tips (192) All topics

Link