Skip to content

Commit

Permalink
Merge pull request #1775 from dashpole/cherrypick_1770
Browse files Browse the repository at this point in the history
Cherrypick of #1770 to 0.27 release branch
  • Loading branch information
dashpole committed Oct 20, 2017
2 parents cda62a4 + d15f127 commit dd8f682
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 dd8f682

Please sign in to comment.