From 812cc819acc5ebc353b9992f43411f5b750d313c Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Mon, 5 Feb 2018 15:49:27 -0800 Subject: [PATCH] monitor only the upper directory for overlay --- container/docker/handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/container/docker/handler.go b/container/docker/handler.go index c5c46ae4bf..8f63d02eb0 100644 --- a/container/docker/handler.go +++ b/container/docker/handler.go @@ -44,6 +44,7 @@ import ( const ( // The read write layers exist here. aufsRWLayer = "diff" + overlayRWLayer = "upper" overlay2RWLayer = "diff" // Path to the directory where docker stores log files if the json logging driver is enabled. @@ -197,7 +198,7 @@ func newDockerContainerHandler( case aufsStorageDriver: rootfsStorageDir = path.Join(storageDir, string(aufsStorageDriver), aufsRWLayer, rwLayerID) case overlayStorageDriver: - rootfsStorageDir = path.Join(storageDir, string(storageDriver), rwLayerID) + rootfsStorageDir = path.Join(storageDir, string(storageDriver), rwLayerID, overlayRWLayer) case overlay2StorageDriver: rootfsStorageDir = path.Join(storageDir, string(storageDriver), rwLayerID, overlay2RWLayer) case zfsStorageDriver: