Closed francoism90 closed 1 year ago
If you want to share files with a given container, you might want to look at the :z
/ :Z
options in podman to make sure the SELinux labels are correct.
I'm going to close this one given that podman-compose
is not included in Silverblue by default. Please reach out to the upstream project.
Asking on https://discussion.fedoraproject.org/ might give you more suggestions.
This issue tracker is intended only for Silverblue specific issues. We would like to ask you to try to reproduce the issue on a relevant Fedora Workstation release. If you will be able to reproduce there, then please report it in Red Hat Bugzilla (see How to file a bug) or in upstream (preferred for GNOME projects) and not in this issue tracker.
Describe the bug I'm really confused, but it does seem SELinux on Fedora Silverblue blocks Podman containers running rootless, from writing to a mounted volume:
I also need to explicit use
uid
andgid
to get it working for rootless mode:It seems to be a configuration issue with the distro, as it seems to work fine with others (incl. Arch). Do you have any idea? The mount is on my home folder.
To Reproduce Please describe the steps needed to reproduce the bug:
PODMAN_USERNS=keep-id:uid=1000,gid=1000 podman-compose up
(or just podman command)Expected behavior Respect UID/GID in Podman containers and have SELinux permissions to do so.
Screenshots If applicable, add screenshots to help explain your problem.
OS version:
Additional context I didn't test without rootless mode.