New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rootless podman missing some permissions within the container #9513
Comments
Thanks for reaching out! Do other containers work? Are you running podman in podman or on the host? |
Thanks for the quick reply! Other containers are running quite fine and I'm running podman on the host. |
Permission denied, I always first check SELinux? If you run the container --privileged does it work? |
Great, if I start the container with the privileged flag it's starting up as expected. Are there any downsides on starting it like this? |
And now there's another permission denied error where it can not execute a bash script file:
It looks like a SELinux problem again. Is there a way to get this working in podman? |
You need to use a newer version of Podman is the problem. Since this is fixed in current podman, this should be opened as a Bugzilla. and most likely if there is no Podman that supports this on RHEL7, then you are going to be told to upgrade to RHEL8. RHEL7 will not be getting any more updates. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When trying to start up weblate as a rootless container the container crashes with
mkdir: cannot create directory ‘/run’: Permission denied
If I check user permissions, groups, directory permissions everything looks the same in a working docker vs non working podman environment. Is there a way to get it working on a RHEL7 machine with podman 1.6.4? I've seen some similar issues here but no of the mentioned solution (e.g. enabling user lingering) was working.
I thought the running as rootless just has differences for the host machine environment and not within the container.
Steps to reproduce the issue:
podman run -v weblate-data:/app/data --env-file ./environment --env-file ./environment.override -d --pod weblatepod weblate/weblate
Describe the results you received:
Container does not start up due to "Permission denied" error.
Describe the results you expected:
Container starts up properly as it does in docker environment.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Due to usage of RHEL7 I cannot update podman to a higher version.
Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No and Yes
The text was updated successfully, but these errors were encountered: