Trying to mount nfs share into rootless container for user-data #12499
Replies: 3 comments 15 replies
-
Don't add the :z. NFS directories sometimes do not support XATTRs. I think policy should allow this to work without the relabeling. NFS does support XATTRs but you need to configure the client and server to make it work. https://www.thegeeksearch.com/how-to-configure-selinux-labeled-nfs-exports/ |
Beta Was this translation helpful? Give feedback.
-
Since this is not an issue, I am moving it to a discussion. |
Beta Was this translation helpful? Give feedback.
-
If you become root on the system and then su to the UID used within the container, can you modify the content of /mnt/mynfs/? If this is owned by root then the permissions on the mynfs directory would need to be either world writable or group writable with the UID having membership in the group that can write to the directory. |
Beta Was this translation helpful? Give feedback.
-
I could use some guidance in regards to rootless podman and NFS shares to store user data only, not to run container images from.
I am probably grossly misunderstanding this, but I have an NFS share mounted in the host and am trying to mount that directory as a volume into a container and receive the following error:
Error: lsetxattr /mnt/mynfs/: operation not supported
-v /mnt/mynfs:/path/in/container:z
Beta Was this translation helpful? Give feedback.
All reactions