-
I'm migrating a Docker set-up to Podman, and am encountering an issue with the PostgreSQL container doing a
... whereas if I put the
The data directory in
Both directories are backed by a BTRFS subvolume:
This is on Debian Trixie, SELinux not configured (adding I have run into similar issues in the past with containers that switch UIDs during start-up, which I've always resolved by forcing the UID to a well-known one (e.g. 1000) and adding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You have to deal with the user namespace. The $USER inside of the container is not matching the $USER outside of the container because of user namespace. |
Beta Was this translation helpful? Give feedback.
Directory being world writeable perhaps?
If you create a directory on your system that the user running Podman is not allowed to write to and his UIDs within their user namespace is not allowed to write to, then it will get permission denied. You could setup the directory such that it is world writeable or group writeable and then leak the group into the container.