Skip to content

Commit

Permalink
Merge pull request #1882 from dashpole/overlay_upper
Browse files Browse the repository at this point in the history
monitor only the upper directory for overlay
  • Loading branch information
dashpole authored Feb 8, 2018
2 parents eb15723 + 812cc81 commit 6116f26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion container/docker/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 6116f26

Please sign in to comment.