diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-17 05:04:00 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 05:04:00 -0500 |
commit | deb75f56543cf1f596082250dd82e4b0ec746e88 (patch) | |
tree | 9ac45d6ebd82ac748e033ec48c2e4e9cf3d4c458 /pkg/specgenutil/volumes.go | |
parent | 3c99cff3d13276b73011047e92f3d952bacbb8a2 (diff) | |
parent | a811acf74cd12fa810de74dec80c9853384a1247 (diff) | |
download | podman-deb75f56543cf1f596082250dd82e4b0ec746e88.tar.gz podman-deb75f56543cf1f596082250dd82e4b0ec746e88.tar.bz2 podman-deb75f56543cf1f596082250dd82e4b0ec746e88.zip |
Merge pull request #13228 from giuseppe/idmap-options
pkg: support passing down options for idmap
Diffstat (limited to 'pkg/specgenutil/volumes.go')
-rw-r--r-- | pkg/specgenutil/volumes.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/specgenutil/volumes.go b/pkg/specgenutil/volumes.go index 6b9624ebb..2bd79b186 100644 --- a/pkg/specgenutil/volumes.go +++ b/pkg/specgenutil/volumes.go @@ -356,7 +356,11 @@ func getBindMount(args []string) (spec.Mount, error) { } setOwnership = true case "idmap": - newMount.Options = append(newMount.Options, "idmap") + if len(kv) > 1 { + newMount.Options = append(newMount.Options, fmt.Sprintf("idmap=%s", kv[1])) + } else { + newMount.Options = append(newMount.Options, "idmap") + } case "consistency": // Often used on MACs and mistakenly on Linux platforms. // Since Docker ignores this option so shall we. |