Container Bind Mount Denied
podman run -d -v /srv/web:/usr/share/nginx/html nginx starts, but the container gets Permission denied reading its files. The files are world-readable and SELinux is enforcing. What is the right fix?
podman run -d -v /srv/web:/usr/share/nginx/html nginx
Permission denied
Choose one answer
Run the container with --privileged so it can read host files
--privileged
Run chmod -R 777 /srv/web so every user can read and write
chmod -R 777 /srv/web
Add :Z to the volume: -v /srv/web:/usr/share/nginx/html:Z
:Z
-v /srv/web:/usr/share/nginx/html:Z
Add --security-opt label=disable to turn labels off for it
--security-opt label=disable