소스 검색

Merge pull request #36201 from arm64b/oom-kill-disable-fixing

Daemon: passdown the `--oom-kill-disable` option to containerd
Sebastiaan van Stijn 7 년 전
부모
커밋
2e8ccbb49e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      daemon/daemon_unix.go

+ 4 - 0
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
 	}