Replies: 3 comments
-
A friendly reminder that this issue had no activity for 30 days. |
Beta Was this translation helpful? Give feedback.
-
Read/only access to the socket, is probably not going to get what you want. You need to write to the socket to be able to tell it what you want. There is currenly no way on either docker.sock or podman.sock to differentiate read/write from read/only. Theoretically you could read only the events happening on the system, but then you would need access to the events log or journald. |
Beta Was this translation helpful? Give feedback.
-
We can continue the discussion if you are still interested. |
Beta Was this translation helpful? Give feedback.
-
/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
Beta Was this translation helpful? Give feedback.
All reactions