Skip to content

Commit

Permalink
Merge pull request #1551 from giuseppe/idmap-no-mount-program
Browse files Browse the repository at this point in the history
overlay: disable native idmap with mount-program
  • Loading branch information
rhatdan authored Apr 4, 2023
2 parents fab09d7 + a2c6ee4 commit b649d7f
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 @@ -1522,7 +1522,7 @@ func (d *Driver) get(id string, disableShifting bool, options graphdriver.MountO
}
}

if !disableShifting && len(options.UidMaps) > 0 && len(options.GidMaps) > 0 {
if !disableShifting && len(options.UidMaps) > 0 && len(options.GidMaps) > 0 && d.options.mountProgram == "" {
var newAbsDir []string
mappedRoot := filepath.Join(d.home, id, "mapped")
if err := os.MkdirAll(mappedRoot, 0700); err != nil {
Expand Down

0 comments on commit b649d7f

Please sign in to comment.