mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Do not prevent docker from running when kernel detection fails
This commit is contained in:
parent
acb546cd1b
commit
3514e47edc
1 changed files with 7 additions and 8 deletions
15
runtime.go
15
runtime.go
|
@ -295,14 +295,13 @@ func NewRuntime() (*Runtime, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
k, err := GetKernelVersion()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
runtime.kernelVersion = k
|
||||
|
||||
if CompareKernelVersion(k, &KernelVersionInfo{Kernel: 3, Major: 8, Minor: 0}) < 0 {
|
||||
log.Printf("WARNING: You are running linux kernel version %s, which might be unstable running docker. Please upgrade your kernel to 3.8.0.", k.String())
|
||||
if k, err := GetKernelVersion(); err != nil {
|
||||
log.Printf("WARNING: %s\n", err)
|
||||
} else {
|
||||
runtime.kernelVersion = k
|
||||
if CompareKernelVersion(k, &KernelVersionInfo{Kernel: 3, Major: 8, Minor: 0}) < 0 {
|
||||
log.Printf("WARNING: You are running linux kernel version %s, which might be unstable running docker. Please upgrade your kernel to 3.8.0.", k.String())
|
||||
}
|
||||
}
|
||||
|
||||
if cgroupMemoryMountpoint, err := FindCgroupMountpoint("memory"); err != nil {
|
||||
|
|
Loading…
Reference in a new issue