Rootless Podman container volume permissions #21423
Replies: 3 comments 1 reply
-
The host does not loose access to the files, users on the host have full control over their content. SELinux is not enforced on the host if the host is a Mac Or Windows, so relabeling has no effect to users on these hosts. The user processes within the VM run as the unconfined_t user so they have full access. It is only the container processes which are confined. |
Beta Was this translation helpful? Give feedback.
-
The user inside a grafana container is as follows:
The subuid on the host:
And the following argument with podman does allow grafana container to make changes to the host directory
but then the permissions are changed and without sudo the host cannot change the files
example:
How do we get control of the directory from the host, once the container is deployed? |
Beta Was this translation helpful? Give feedback.
-
That works!!. Thank you very much @Garbanzo247 . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The z,Z flag prevents the permission denied error and the containers can read and write to the bind mount files but then the host loses the access to the same and without root, there is no way to make changes.
Is there a way to ensure the host as well as the container both have read-write access to the files and folders even after mounting (bind)?
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions