diff --git a/components/engine/daemon/daemon_unix.go b/components/engine/daemon/daemon_unix.go index de9537c1b0..950de3f213 100644 --- a/components/engine/daemon/daemon_unix.go +++ b/components/engine/daemon/daemon_unix.go @@ -103,6 +103,10 @@ func getMemoryResources(config containertypes.Resources) *specs.LinuxMemory { memory.Swappiness = &swappiness } + if config.OomKillDisable != nil { + memory.DisableOOMKiller = config.OomKillDisable + } + if config.KernelMemory != 0 { memory.Kernel = &config.KernelMemory }