This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Read-only access to container storage (formerly 'Mount docker.sock') #12760
Labels
You can continue the conversation there. Go to discussion →
/kind feature
Description
Many containers require read-only access to the docker socket (for example https://github.com/nginx-proxy/nginx-proxy and https://github.com/nginx-proxy/acme-companion) in order to e.g. trigger actions when containers are started with certain properties, so users have been requesting the ability to mount
/run/podman/podman.sock
as a volume in their containers. This would be very dangerous with write capabilities, but the ability to read container storage should be a possible setup if the user is aware of the implications.Steps to reproduce the issue:
nginx-proxy
with something likepodman run --name=nginx-proxy -p=80:80 -p 443:443 -v /etc/nginx/certs:/etc/nginx/certs -v /etc/nginx/vhost.d:/etc/nginx/vhost.d -v /etc/nginx/html:/usr/share/nginx/html -v /var/run/podman/podman.sock:/tmp/docker.sock:ro docker.io/jwilder/nginx-proxy:latest
Describe the results you received:
See some error like:
Describe the results you expected:
Read only access succeeds!
Additional information you deem important (e.g. issue happens only occasionally):
Previous ticket here: #6015 (comment)
Version Details
**Output of `podman 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? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Fedora CoreOS 35
The text was updated successfully, but these errors were encountered: