Skip to content

Commit

Permalink
Merge pull request #1398 from nalind/subdirs
Browse files Browse the repository at this point in the history
Don't create $root/{mounts,tmp}, which we don't use
  • Loading branch information
mtrmac committed Oct 18, 2022
2 parents 77f301d + ef7acdd commit 33c396d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,8 @@ func GetStore(options types.StoreOptions) (Store, error) {
if err := os.MkdirAll(options.GraphRoot, 0700); err != nil {
return nil, err
}
for _, subdir := range []string{"mounts", "tmp", options.GraphDriverName} {
if err := os.MkdirAll(filepath.Join(options.GraphRoot, subdir), 0700); err != nil {
return nil, err
}
if err := os.MkdirAll(filepath.Join(options.GraphRoot, options.GraphDriverName), 0700); err != nil {
return nil, err
}

graphLock, err := GetLockfile(filepath.Join(options.GraphRoot, "storage.lock"))
Expand Down

0 comments on commit 33c396d

Please sign in to comment.