Skip to content

Commit

Permalink
monitor diff directory for overlay2
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Nov 1, 2017
1 parent d19cc94 commit 8aea7ea
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 8aea7ea

Please sign in to comment.