Skip to content

Commit

Permalink
Merge pull request #1770 from dashpole/fix_overlay2
Browse files Browse the repository at this point in the history
Monitor diff directory for overlay2
  • Loading branch information
derekwaynecarr committed Oct 18, 2017
2 parents 790b787 + b7959da commit 90bb052
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions container/docker/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ import (

const (
// The read write layers exist here.
aufsRWLayer = "diff"
aufsRWLayer = "diff"
overlay2RWLayer = "diff"

// Path to the directory where docker stores log files if the json logging driver is enabled.
pathToContainersDir = "containers"
Expand Down Expand Up @@ -195,8 +196,10 @@ func newDockerContainerHandler(
switch storageDriver {
case aufsStorageDriver:
rootfsStorageDir = path.Join(storageDir, string(aufsStorageDriver), aufsRWLayer, rwLayerID)
case overlayStorageDriver, overlay2StorageDriver:
case overlayStorageDriver:
rootfsStorageDir = path.Join(storageDir, string(storageDriver), rwLayerID)
case overlay2StorageDriver:
rootfsStorageDir = path.Join(storageDir, string(storageDriver), rwLayerID, overlay2RWLayer)
case zfsStorageDriver:
status, err := Status()
if err != nil {
Expand Down

0 comments on commit 90bb052

Please sign in to comment.