What happens when a container hits its CPU limit, and what happens when it hits its memory limit?
A CPU limit is a quota per scheduling period, so exceeding it means the process is throttled until the next period and gets slower. A memory limit has no throttle: the kernel reclaims what it can and then the cgroup OOM killer terminates a process, which surfaces as exit code 137.