mirror of
https://github.com/containerd/containerd.git
synced 2026-11-07 05:47:40 +00:00
Skip automatic `if swapLimit == 0 { s.Linux.Resources.Memory.Swap = &limit }` when the swap controller is missing.
(default on Ubuntu 20.04)
Fix issue 7828 (regression in PR 7783 "cri: make swapping disabled with memory limit")
Cherry-Pick was not cleaned, required updated cgroups library from v1.0.3 to v1.0.4
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 4157503881)
Signed-off-by: Derek McGowan <derek@mcg.dev>