1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Windows: Fix cgroup regression

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2015-06-19 15:29:47 -07:00
parent 7313a9ae9c
commit 9d0ed1dea0

View file

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