Rootless NFS Volume Permissions: What am I doing wrong with my Nextcloud/MaraiDB/Redis pod? #20519
Replies: 4 comments 29 replies
-
In the volume case rootless podman is attempting to do a In the -v /mnt ... case podman is doing a There is nothing Podman can do about this until the kernel figures a way to safely allow a rootless user to mount an NFS share. |
Beta Was this translation helpful? Give feedback.
-
This does not answer your question about named volumes, but if you would like to use bind-mounts The shell scripts and results: From the results:
One test you could do is adding such --userns options and see if it starts to works. Edit 1If you would like to run the containers with different UID/GID mappings, the containers can't be running in the same pod. |
Beta Was this translation helpful? Give feedback.
-
I've not made much progress on this, but I've set aside the remainder of this week and next for working on it. I did some background research of fuse-overlayfs, and I'm stumped on what to do or if it will help at all. Do I like overlay an empty local directory with one hosted on the NFS or something? And if I get that working, can the overlay be loaded from a counterpart Podman -v on another server if needed? |
Beta Was this translation helpful? Give feedback.
-
I did a test by using quadlets and nginx as a proxy (with socket activation). Something is working. I've only checked that the output from curl contains the text
For data storage two directories were used
After running the demo I can see that the directories only contain directories and files belonging to the regular user on the host. For more info see https://github.com/eriksjolund/nextcloud-podman |
Beta Was this translation helpful? Give feedback.
-
This is a cross post from the Podman Discord server. Last night, I had this question:
/mnt/PhotoTrunk/nextcloudPhotoVault is a directory hosted on an NFS-share volume
The user has permission to view it through Bash.
Debian 11
Podman 3.0.1
In contrast:
I'm trying to understand what the difference is here.
I can't create and mount a volume, but mounting directories directly is cool.
selckin recommended over a relay:
But when I tried that, I got the same error:
Today, I configured my Nextcloud/MariaDB/Redis pod script to mount directories over NFS, but both Nextcloud and MariaDB's logs filled with permissions errors regarding chown:
(MariaDB)
(Nextcloud)
Am I doing something obviously wrong, or does Podman/NFS just not work that way and I'll have to investigate making a virtual drive or something? Maybe something can be arranged with SSH?
Please be patient if I don't respond right away as I take Sabbath off (sundown Friday sundown Saturday, Pacific time) from my computer projects.
EDIT: I got into Synology to enable root squashing (to guest, or so it says), but that didn't seem to help.
EDIT 2: It's been almost a year with no breakthrough. I'm working on it again, but I'm starting with a fresh slate in a new discussion.
Beta Was this translation helpful? Give feedback.
All reactions