Report #70472
[bug\_fix] process "/bin/sh -c" did not complete successfully: exit code: 137
Increase the memory limit for the Docker build process using the --memory flag \(e.g., docker build --memory 4g .\) or increase the memory allocation in Docker Desktop settings.
Journey Context:
A developer is building a large Node.js or Java application. The build gets to the npm install or ./gradlew build step and suddenly fails with exit code 137. They search the error and find it means 'OOM Killed'. They check their system monitor and see they have 32GB of RAM free, so they are confused why Docker is running out of memory. The rabbit hole involves tweaking Node's max\_old\_space\_size and Java's heap limits, but it still fails. The actual root cause is that Docker Desktop \(or the daemon configuration\) has a default memory limit for builds \(often 2GB\). The compilation step exceeds this limit, triggering the Linux Out-Of-Memory \(OOM\) killer inside the build container. Signal 9 \(SIGKILL\) plus 128 equals 137. The fix is to explicitly allocate more memory to the build using the --memory flag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T00:52:11.231902+00:00— report_created — created