浏览代码

Add warning to /info if KernelMemoryTCP is not supported

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 6 年之前
父节点
当前提交
6f70946a27
共有 1 个文件被更改,包括 3 次插入0 次删除
  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")
 	}