Replies: 4 comments 2 replies
-
Can you change the mount for the usb stick to be labled correctly in the first place? mount -o context="system_u:object_r:container_file_t:s0" ... |
Beta Was this translation helpful? Give feedback.
-
I wonder if the space in the name is screwing this up? Also there is no documentation for this attribute in podman kube play man page. |
Beta Was this translation helpful? Give feedback.
-
Doesn't seem to work from fstab.
Right, I found a reference to it here. #16196 (comment) |
Beta Was this translation helpful? Give feedback.
-
@rhatdan Thanks. Was able to get the disk mounted with the SELinux context. Everything seems to working correctly if I remove the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to migrate an existing manual container deployment to
podman play kube
but I can't seem to setup the volume with correct selinux bits.I have a USB disk that's mounted under
/mnt
. When using podman to create the container manually, I mounted the volume like so:However, now that I'm using
podman kube play
, I can't figure out how to pass that 'Z'. I've tried this:but the container just hangs in the
Created
state:Any idea what's going on here? Let me know if I can provide more details. Thx!
Beta Was this translation helpful? Give feedback.
All reactions