diff --git a/daemon/info.go b/daemon/info.go index 5db37f8a32..057b6cf50f 100644 --- a/daemon/info.go +++ b/daemon/info.go @@ -141,9 +141,13 @@ func (daemon *Daemon) SystemVersion() types.Version { Experimental: utils.ExperimentalBuild(), } - if kernelVersion, err := kernel.GetKernelVersion(); err == nil { - v.KernelVersion = kernelVersion.String() + kernelVersion := "" + if kv, err := kernel.GetKernelVersion(); err != nil { + logrus.Warnf("Could not get kernel version: %v", err) + } else { + kernelVersion = kv.String() } + v.KernelVersion = kernelVersion return v }