diff --git a/cli/command/system/info.go b/cli/command/system/info.go index 80616de3b1..c19946d09e 100644 --- a/cli/command/system/info.go +++ b/cli/command/system/info.go @@ -402,7 +402,7 @@ func printServerWarningsLegacy(dockerCli command.Cli, info types.Info) { if !info.SwapLimit { fmt.Fprintln(dockerCli.Err(), "WARNING: No swap limit support") } - if !info.OomKillDisable { + if !info.OomKillDisable && info.CgroupVersion != "2" { fmt.Fprintln(dockerCli.Err(), "WARNING: No oom kill disable support") } if !info.CPUCfsQuota {