Browse code

Add warning to /info if KernelMemoryTCP is not supported

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

Sebastiaan van Stijn authored on 2018/11/28 06:47:39
Showing 1 changed files
... ...
@@ -86,6 +86,9 @@ func (daemon *Daemon) fillPlatformInfo(v *types.Info, sysInfo *sysinfo.SysInfo)
86 86
 	if !v.KernelMemory {
87 87
 		v.Warnings = append(v.Warnings, "WARNING: No kernel memory limit support")
88 88
 	}
89
+	if !v.KernelMemoryTCP {
90
+		v.Warnings = append(v.Warnings, "WARNING: No kernel memory TCP limit support")
91
+	}
89 92
 	if !v.OomKillDisable {
90 93
 		v.Warnings = append(v.Warnings, "WARNING: No oom kill disable support")
91 94
 	}