cgroups: limits, and why exit code 137 happens
Select an icon to see what it is.
Step 5 of 6
Exit code 137
A process killed by signal 9 reports exit code 128 plus 9, which is 137. dockerd records it and also sets OOMKilled when the cgroup's kill was an OOM kill. Seeing 137 with OOMKilled true means the memory limit was too low for the program.
$ docker inspect --format '{{.State.OOMKilled}} {{.State.ExitCode}}' webGET /v1.45/containers/a9b8c7d6e5f4/json (State)
{"State": {"Status": "exited""Running": false"OOMKilled": true"ExitCode": 137}}