SIGKILL (128 + 9). In 99% of production cases, the Linux kernel Out-Of-Memory (OOM) killer terminated the process because memory consumption hit the container cgroup memory limit.
Run these commands on your host node or container daemon to verify if OOM was the cause:
docker inspect <container_name_or_id> --format '{{.State.OOMKilled}}'
If the output is true, the cgroup limit was breached. You can also inspect the memory allocation limit configured for the container:
docker inspect <container_name_or_id> --format '{{json .HostConfig.Memory}}'
-XX:MaxRAMPercentage=75.0) often allocate memory based on total host RAM rather than the container cgroup limit.To resolve Exit Code 137 permanently:
docker-compose.yml or Kubernetes deployment manifest:
services:
app:
image: myapp:latest
deploy:
resources:
limits:
memory: 2G
reservations:
memory: 1G
dev0ps-20: ECC Server Memory Deals on Amazon (tag dev0ps-20).Verified tools for production Kubernetes, Docker, and cloud monitoring:
Note: SaaS program signups pending owner onboarding. Product links route through Amazon tag dev0ps-20 fallbacks.
dev0ps-20. Full Affiliate Disclosure →