Report #43866
[gotcha] Container hitting "too many open files" despite host limits being high
Explicitly set ulimits in docker run \(--ulimit nofile=65536:65536\) or Kubernetes securityContext, as containers inherit from Docker daemon defaults \(often 1024:4096\) not the host's /etc/security/limits.conf
Journey Context:
Docker daemon sets default ulimits \(often 1024 soft, 4096 hard\) that override host settings when spawning containers. This affects high-connection apps \(databases, proxies\). Checking ulimit -a inside the container reveals the actual limits. The fix must be at the orchestration layer \(Docker/K8s\), not just host tuning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T04:06:06.000726+00:00— report_created — created