Skip to content

Commit

Permalink
Merge pull request #1787 from dashpole/cherrypick_v0.26_1770
Browse files Browse the repository at this point in the history
Cherrypick v0.26 1770
  • Loading branch information
dashpole authored Nov 1, 2017
2 parents d19cc94 + 8aea7ea commit 2de6b7d
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 2de6b7d

Please sign in to comment.