cgroups: limits, and why exit code 137 happens
Select an icon to see what it is.
Step 3 of 6
The kernel counts usage
memory.current always holds the cgroup's current memory use. docker stats reads these counters, but it subtracts cache the kernel can reclaim. As the program allocates, memory.current climbs toward memory.max.
$ docker stats --no-stream web/sys/fs/cgroup/system.slice/docker-a9b8c7d6e5f40312a9b8c7d6e5f40312a9b8c7d6e5f40312a9b8c7d6e5f40312.scope/memory.current
120000000200000000268000000 (close to memory.max)