diff options
author | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-09 17:01:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 17:01:04 +0300 |
commit | 92504cee34006f2198393a51efd93bea46346ec2 (patch) | |
tree | f2ee7d0f4e06ff822830af1e5c8eb8ee220ee702 /src/systemd/podman.socket | |
parent | b2afa78d6f006e753be1fa07a640d14fe94a0b8f (diff) | |
download | vyos-1x-92504cee34006f2198393a51efd93bea46346ec2.tar.gz vyos-1x-92504cee34006f2198393a51efd93bea46346ec2.zip |
container: T6702: re-add missing UNIX API socket (#4039)
During podman upgrade and a build from the original source the UNIX socket
definition for systemd got lost in translation.
This commit re-adds the UNIX socket which is started on boot to interact with
Podman.
Example:
curl --unix-socket /run/podman/podman.sock -H 'content-type: application/json' \
-sf http://localhost/containers/json
(cherry picked from commit f67e217f2716937115a3bdf6d316b172bbec75e5)
Co-authored-by: Christian Breunig <christian@breunig.cc>
Diffstat (limited to 'src/systemd/podman.socket')
-rw-r--r-- | src/systemd/podman.socket | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/systemd/podman.socket b/src/systemd/podman.socket new file mode 100644 index 000000000..397058ee4 --- /dev/null +++ b/src/systemd/podman.socket @@ -0,0 +1,10 @@ +[Unit] +Description=Podman API Socket +Documentation=man:podman-system-service(1) + +[Socket] +ListenStream=%t/podman/podman.sock +SocketMode=0660 + +[Install] +WantedBy=sockets.target |