mirror of
https://github.com/docker/cli.git
synced 2026-01-16 20:22:36 +03:00
Add the swapMemorySupport requirement to all tests related to the OOM killer. The --memory option has the subtle side effect of defaulting --memory-swap to double the value of --memory. The OOM killer doesn't kick in until the container exhausts memory+swap, and so without the memory swap cgroup the tests will timeout due to swap being effectively unlimited. Document the default behavior of --memory-swap in the docker run man page. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Upstream-commit: adabb51311ecac031bd72378c5ed1669d1835d40 Component: engine