What does `--oom-kill-disable` do for a Docker container?
问题 I have understood that docker run -m 256m --memory-swap 256m will limit a container so that it can use at most 256 MB of memory and no swap. If it allocates more, then a process in the container (not "the container") will be killed. For example: $ sudo docker run -it --rm -m 256m --memory-swap 256m \ stress --vm 1 --vm-bytes 2000M --vm-hang 0 stress: info: [1] dispatching hogs: 0 cpu, 0 io, 1 vm, 0 hdd stress: FAIL: [1] (415) <-- worker 7 got signal 9 stress: WARN: [1] (417) now reaping child