mirror of https://github.com/docker/docs.git
Runtime: remove unused field kernelVersion
This commit is contained in:
parent
b0515a7016
commit
7e4d008403
|
@ -32,7 +32,6 @@ type Runtime struct {
|
||||||
repositories *TagStore
|
repositories *TagStore
|
||||||
idIndex *utils.TruncIndex
|
idIndex *utils.TruncIndex
|
||||||
capabilities *Capabilities
|
capabilities *Capabilities
|
||||||
kernelVersion *utils.KernelVersionInfo
|
|
||||||
autoRestart bool
|
autoRestart bool
|
||||||
volumes *Graph
|
volumes *Graph
|
||||||
srv *Server
|
srv *Server
|
||||||
|
@ -440,7 +439,6 @@ func NewRuntime(flGraphPath string, autoRestart bool, dns []string) (*Runtime, e
|
||||||
if k, err := utils.GetKernelVersion(); err != nil {
|
if k, err := utils.GetKernelVersion(); err != nil {
|
||||||
log.Printf("WARNING: %s\n", err)
|
log.Printf("WARNING: %s\n", err)
|
||||||
} else {
|
} else {
|
||||||
runtime.kernelVersion = k
|
|
||||||
if utils.CompareKernelVersion(k, &utils.KernelVersionInfo{Kernel: 3, Major: 8, Minor: 0}) < 0 {
|
if utils.CompareKernelVersion(k, &utils.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())
|
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())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue