From aface21a83f54e0f1a60549589d6ad2caa40f473 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 6 Sep 2024 17:57:24 +0200 Subject: container: T6702: re-add missing UNIX API socket 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) --- src/systemd/podman.socket | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/systemd/podman.socket (limited to 'src/systemd/podman.socket') 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 -- cgit v1.2.3