Merge pull request #692 from hqhq/fix_overlay_mkdir
Use MkdirAll when create snapshots directory
This commit is contained in:
commit
b2214e9ebe
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue