Dev Tools · 1h ago
Fix Docker Exit Code 137: Diagnose and Prevent OOMKilled Containers
Docker exit code 137 (128+9) indicates a SIGKILL, often from the kernel OOM killer when a container exceeds its memory limit or the host runs out of RAM. Use `docker inspect` to confirm OOMKilled status and `dmesg` to check kernel logs. Common causes include missing or too-low memory limits, memory leaks, or runtimes ignoring cgroup constraints.
Meridian48 take
This is a practical debugging guide for a common container failure, but it omits modern solutions like memory reservation and swap limits that can prevent OOM kills more gracefully.
Read the full reporting
Fix Docker Exit Code 137 (OOMKilled): Why It Happens and How to Stop It →
DEV Community
dockeroom-killed