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:
parent
e009e64663
commit
262ceb075c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user