Merge pull request #692 from hqhq/fix_overlay_mkdir

Use MkdirAll when create snapshots directory
This commit is contained in:
Derek McGowan 2017-04-05 10:11:26 -07:00 committed by GitHub
commit b2214e9ebe

View file

@ -49,7 +49,7 @@ func NewSnapshotter(root string) (snapshot.Snapshotter, error) {
return nil, err
}
if err := os.Mkdir(filepath.Join(root, "snapshots"), 0700); err != nil {
if err := os.MkdirAll(filepath.Join(root, "snapshots"), 0700); err != nil {
return nil, err
}