Explorar o código

Add warning to /info if KernelMemoryTCP is not supported

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn %!s(int64=6) %!d(string=hai) anos
pai
achega
6f70946a27
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      daemon/info_unix.go

+ 3 - 0
daemon/info_unix.go

@@ -86,6 +86,9 @@ func (daemon *Daemon) fillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo)
 	if !v.KernelMemory {
 		v.Warnings = append(v.Warnings, "WARNING: No kernel memory limit support")
 	}
+	if !v.KernelMemoryTCP {
+		v.Warnings = append(v.Warnings, "WARNING: No kernel memory TCP limit support")
+	}
 	if !v.OomKillDisable {
 		v.Warnings = append(v.Warnings, "WARNING: No oom kill disable support")
 	}