Commit 99b9c3d2 authored by Yu-Ju Hong's avatar Yu-Ju Hong

Dockershim: print docker info output at startup

parent 1842922b
...@@ -202,6 +202,7 @@ func NewDockerService(client libdocker.Interface, podSandboxImage string, stream ...@@ -202,6 +202,7 @@ func NewDockerService(client libdocker.Interface, podSandboxImage string, stream
// NOTE: cgroup driver is only detectable in docker 1.11+ // NOTE: cgroup driver is only detectable in docker 1.11+
cgroupDriver := defaultCgroupDriver cgroupDriver := defaultCgroupDriver
dockerInfo, err := ds.client.Info() dockerInfo, err := ds.client.Info()
glog.Infof("Docker Info: %+v", dockerInfo)
if err != nil { if err != nil {
glog.Errorf("Failed to execute Info() call to the Docker client: %v", err) glog.Errorf("Failed to execute Info() call to the Docker client: %v", err)
glog.Warningf("Falling back to use the default driver: %q", cgroupDriver) glog.Warningf("Falling back to use the default driver: %q", cgroupDriver)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment