Skip to content

Commit

Permalink
Merge pull request #1314 from nalind/mountsub-diff
Browse files Browse the repository at this point in the history
overlay: use the right lowers for read-only mounts via subprocess
  • Loading branch information
rhatdan committed Aug 30, 2022
2 parents a3c0839 + 60f8aab commit 134614c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
diffDir := path.Join(id, "diff")
opts = fmt.Sprintf("lowerdir=%s,upperdir=%s,workdir=%s", strings.Join(relLowers, ":"), diffDir, workdir)
} else {
opts = fmt.Sprintf("lowerdir=%s", strings.Join(relLowers, ":"))
opts = fmt.Sprintf("lowerdir=%s:%s", diffDir, strings.Join(relLowers, ":"))
}
if len(optsList) > 0 {
opts = fmt.Sprintf("%s,%s", opts, strings.Join(optsList, ","))
Expand Down

0 comments on commit 134614c

Please sign in to comment.