Skip to content

Commit a7a7011

Browse files
committed
fix: swapped volume relabel option values
Signed-off-by: Xabier Napal <[email protected]>
1 parent e1a7a0e commit a7a7011

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/podman/common/volumes.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,9 @@ func getBindMount(args []string) (spec.Mount, error) {
337337
}
338338
switch kv[1] {
339339
case "private":
340-
newMount.Options = append(newMount.Options, "z")
341-
case "shared":
342340
newMount.Options = append(newMount.Options, "Z")
341+
case "shared":
342+
newMount.Options = append(newMount.Options, "z")
343343
default:
344344
return newMount, errors.Wrapf(util.ErrBadMntOption, "%s mount option must be 'private' or 'shared'", kv[0])
345345
}

0 commit comments

Comments
 (0)