Skip to content

Commit

Permalink
Merge pull request #1468 from dcermak/dont-forget-driverpriority-in-r…
Browse files Browse the repository at this point in the history
…ootless

Only override the graphdriver to vfs if the priority is unset
  • Loading branch information
rhatdan committed Jan 16, 2023
2 parents e778f8b + df0cb32 commit 0af0a99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@ func getRootlessStorageOpts(rootlessUID int, systemOpts StoreOptions) (StoreOpti
}
}
if opts.GraphDriverName == "" {
opts.GraphDriverName = "vfs"
if len(systemOpts.GraphDriverPriority) == 0 {
opts.GraphDriverName = "vfs"
} else {
opts.GraphDriverPriority = systemOpts.GraphDriverPriority
}
}

if os.Getenv("STORAGE_OPTS") != "" {
Expand Down

0 comments on commit 0af0a99

Please sign in to comment.