exited with code 137
This error matches known, documented patterns with reliable solutions.
Quick Fix (Most Common Solution)
- Increase memory limit with -m flag
- Optimize application memory usage
Seeing "exited with code 137"? This error can be frustrating, but it's usually fixable. It typically affects your development workflow or system. Below you'll find clear, step-by-step solutions to resolve this issue.
What This Error Means
The container exceeded its memory limit and was killed.
Frequently documented in developer and vendor support forums.
Not affiliated with browser, OS, or device manufacturers.
New here? Learn why exact error messages matter →
Common Causes
- Memory limit too low
- Memory leak in app
- Resource-intensive task
How to Fix
- Increase memory limit with -m flag
- Optimize application memory usage
- Check for memory leaks
Last reviewed: April 2026 How we review solutions
OS-Specific Behavior
Exit Code 137 Oom Killed on Apple Silicon: arm64 vs amd64 Architecture
Exit Code 137 Oom Killed for developers on Apple Silicon.
Docker Desktop on Mac uses Rosetta 2 to emulate amd64 images, which works for most images but not all — particularly those with compiled binaries or kernel-specific operations. The cleanest long-term solution is to use multi-architecture images: docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push . creates a manifest list that serves the correct architecture automatically. For pulling official images, most major images (postgres, redis, nginx, node) now publish multi-arch manifests — specifying just the tag without a platform suffix will pull the correct one. If you must use an amd64-only image on Apple Silicon, add platform: linux/amd64 in your Compose file to force emulation. Check which images in your stack lack arm64 variants with docker buildx imagetools inspect <image>.Optional follow-up
Some users ask whether saving fixes for recurring errors would be useful when the same issue appears again.
Was this explanation helpful?
Frequently Asked Questions
What is 137?
128 + 9 (SIGKILL), meaning forcefully killed.
Default memory limit?
No limit unless you set one.
Related Resources
Also Known As
- Docker container error
- Docker build failure
- Container runtime error
- Docker daemon error
Common Search Variations
- "docker container won't start"
- "docker build error fix"
- "docker image not found"
- "container exited with error"
- "docker daemon not responding"
- "fix docker network error"
Related Errors
Still Stuck?
Paste a different error message or upload a screenshot to get help instantly.