Fix docker storage path while calculating disk usage from within the container.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
This commit is contained in:
Vishnu kannan 2016-02-18 16:44:33 -08:00
parent e009e64663
commit 262ceb075c

View File

@ -129,6 +129,7 @@ func newDockerContainerHandler(
rootFs := "/" rootFs := "/"
if !inHostNamespace { if !inHostNamespace {
rootFs = "/rootfs" rootFs = "/rootfs"
storageDir = path.Join(rootFs, storageDir)
} }
id := ContainerNameToDockerId(name) id := ContainerNameToDockerId(name)