Report #46008
[gotcha] Resource temporarily unavailable fork failures inside containers on systemd hosts
Set DefaultTasksMax=infinity in /etc/systemd/system.conf or set TasksMax=infinity in the container runtime's systemd service unit
Journey Context:
systemd sets a global DefaultTasksMax \(512 or 15% of PID max\) inherited by all services including container runtimes. When running many containers or processes, the total tasks hits this limit causing fork failures even with plenty of RAM/CPU. Common mistake is checking ulimits \(per-user\) but missing the systemd task limit. The fix is raising DefaultTasksMax in system.conf or setting TasksMax=infinity for specific services like docker.service or containerd.service.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:41:52.312682+00:00— report_created — created