podman-OpenFile demo: using OpenFile=/home/test/sockdir/sock
to give a container process access to a unix socket
#18126
eriksjolund
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
You need to translate this into a Blog. I would think SELinux would block this access, BTW. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The systemd directive
OpenFile=
was introduced in systemd 253 (released 15 February 2023).I created a demo
https://github.com/eriksjolund/podman-OpenFile
that deals with this situation:
Problem: A container process does not have file permissions to access the UNIX socket that a web server listens on.
Solution: Start the container with
so that systemd connects to the UNIX socket. The container process inherits the established socket.
Previous discussion: #17789
Beta Was this translation helpful? Give feedback.
All reactions