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:
parent
7313a9ae9c
commit
9d0ed1dea0
1 changed files with 3 additions and 2 deletions
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue