--memoryputs a memory ceiling on all of a container's processes; outgrow it, and the OOM killer ends the largest process with SIGKILL.- Code 137 = 128 + 9 means "killed by SIGKILL"; a memory shortage is confirmed by
.State.OOMKilledand anout of memoryline injournalctl -k. docker stats --no-streamshows usage and the ceiling; without--memorythe ceiling is all of the machine's memory, while--cpusslows a process down with a quota.- A UID in a container is the same UID on the machine;
--user UID:GIDtakes the process away from root. - The report at the start of the lesson broke off without an error because the build did not fit into the 32 MiB limit and the kernel killed it — twice, once on each try.
Step 9 of 9 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson