Fallback to flag defined value for storage dir in case docker info

doesn't provide the storage dir.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
Vishnu kannan 2016-02-03 17:02:53 -08:00
parent f5829b4744
commit 3f75344053

View File

@ -293,7 +293,8 @@ func Register(factory info.MachineInfoFactory, fsInfo fs.FsInfo) error {
storageDir, err := getStorageDir(information)
if err != nil {
return err
glog.V(2).Infof("failed to detect storage directory from docker. Defaulting to using the value in --docker_root: %q", err, *dockerRootDir)
storageDir = path.Join(*dockerRootDir, sd)
}
cgroupSubsystems, err := libcontainer.GetCgroupSubsystems()
if err != nil {