Unable to get rootless Podman to work with NFS storage. Is fuse-overlayfs the solution? #21606
Replies: 3 comments 12 replies
-
Update: I've had some mixed success using a combination of:
I wouldn't call this solved or ideal though. It isn't very clean and I'm sure not all containers will work like this |
Beta Was this translation helpful? Give feedback.
-
I did a test on Fedora CoreOS with
It seems to work. (In the example I didn't use NFS but maybe the same method could be used if Example
myfile1:
myfile2:
Result: It seems to work. The files myfile1 and myfile2 both have the same ownership as the regular user on the host when looking directly in the host file system. The XATTR |
Beta Was this translation helpful? Give feedback.
-
My NFS share support xattrs, but I still struggle to use mounted share. |
Beta Was this translation helpful? Give feedback.
-
I've been pulling my hair out for days on this. I have a Synology NAS with an NFS share that I want to use as storage for rootless Podman containers on a Fedora VM.
I've mounted the NFS share on the Fedora VM and created a directory owned by my rootless user. This is all fine, except when I run a container that tries to chmod files to a uid within its user namespace, the NFS server denies the operation which causes the container to fail. I'm using a bind volume mount for the container.
I came across this article which includes the following:
This sounds like exactly what I need, so I created
~/.config/containers/storage.conf
and changed mount_program to/usr/bin/fuse-overlayfs
. I did apodman system reset
then verified thatoverlay.mount_program
is set to fuse-overlayfs inpodman info
. I don't see any difference in behavior, however. I still get permission denied with bind mounts. I tried to create and mount a podman volume as described here, but I still get permission denied. I don't see any indication that podman is actually using fuse. Am I doing something wrong?I'm on Fedora 38, kernel 6.7.4-100.fc38.x86_64, and podman 4.8.3
Beta Was this translation helpful? Give feedback.
All reactions