How to correctly set uid and gid in podman-compose file for nextcloud? #24922
Unanswered
g4njawizard
asked this question in
Q&A
Replies: 1 comment 2 replies
-
What happens if you remove the line When I tried it out before, I just used
in this quadlet unit: I noticed that we are not using exactly the same container image The example I wrote is still a bit work in progress because I only tried with HTTP and not with HTTPS. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been for a couple of days trying to run multiple container on my NVME Raspberry Pi 5 running rootless podman. I use systemd to control my services. I have 3 services setup, but one of those (nextcloud) had some permission issues.
I got it somehow working, but I cant access the files.
My Compose File:
Looking at the directories, I can see it becomes the following ID's assigned.
When I try to follow: https://github.com/containers/podman/blob/main/troubleshooting.md#33-container-creates-a-file-that-is-not-owned-by-the-users-regular-uid
I receive the following mapping:
I want to try if I can use these id's to create a file with my ownership.
When I now want to set these in my compose file, I receive a permission denied error.
Result:
The used ID inside that container seems to be www-data which makes sense for apache unable to access files. Am I missing here something?
Beta Was this translation helpful? Give feedback.
All reactions