summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorXabier Napal <xabiernapal@pm.me>2021-06-23 22:42:03 +0200
committerXabier Napal <xabiernapal@pm.me>2021-06-24 22:18:25 +0200
commita7a701196102534d4edac8d7ccbabf7ec1cb2ccf (patch)
tree58d0ee0d2019d30acdaf6c625b4e6f0ed5677c44 /cmd/podman/common
parente1a7a0efbeec4950815a29372a1c932bbf1bc9fb (diff)
downloadpodman-a7a701196102534d4edac8d7ccbabf7ec1cb2ccf.tar.gz
podman-a7a701196102534d4edac8d7ccbabf7ec1cb2ccf.tar.bz2
podman-a7a701196102534d4edac8d7ccbabf7ec1cb2ccf.zip
fix: swapped volume relabel option values
Signed-off-by: Xabier Napal <xabiernapal@pm.me>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/volumes.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/common/volumes.go b/cmd/podman/common/volumes.go
index aff323936..883d604da 100644
--- a/cmd/podman/common/volumes.go
+++ b/cmd/podman/common/volumes.go
@@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) {
}
switch kv[1] {
case "private":
- newMount.Options = append(newMount.Options, "z")
- case "shared":
newMount.Options = append(newMount.Options, "Z")
+ case "shared":
+ newMount.Options = append(newMount.Options, "z")
default:
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
}