浏览代码

Windows: Fix cgroup regression

Signed-off-by: John Howard <jhoward@microsoft.com>
John Howard 10 年之前
父节点
当前提交
9d0ed1dea0
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      daemon/daemon.go

+ 3 - 2
daemon/daemon.go

@@ -743,8 +743,9 @@ func NewDaemon(config *Config, registryService *registry.Service) (daemon *Daemo
 	}
 
 	sysInfo := sysinfo.New(false)
-	// Check if Devices cgroup is mounted, it is hard requirement for container security.
-	if !sysInfo.CgroupDevicesEnabled {
+	// Check if Devices cgroup is mounted, it is hard requirement for container security,
+	// on Linux/FreeBSD.
+	if runtime.GOOS != "windows" && !sysInfo.CgroupDevicesEnabled {
 		return nil, fmt.Errorf("Devices cgroup isn't mounted")
 	}