4 ms·
> Plus, unlike Docker their containers bow to SELinux definitions, so I have repeatedly struggled with containers unable to access mapped directories. Add the
by emerongi 3y ago
> Plus, unlike Docker their containers bow to SELinux definitions, so I have repeatedly struggled with containers unable to access mapped directories.
Add the following to containers.conf if you don't want to deal with it:
[containers]
label=false
If you don't like podman's default security level, there is usually a way to turn things off.
- sph 3y agoThe only times I had issues with SELinux and podman, it was because I forgot to add the z flag to the volume: podman run -v .:/app:z image This only happens locally as files in your home have strict security rules, never had any issue on a CentOS server.
- PhilippGille 3y agoNote there's also uppercase Z, for when the volume shouldn't be shared with other containers: https://unix.stackexchange.com/questions/651198/podman-volume-mounts-when-to-use-the-z-or-z-suffix https://unix.stackexchange.com/questions/651198/podman-volum...