podman.socket is a systemd socket unit that listens on a UNIX socket and activates Podman’s API service only when a client connects. Podman provides separate units for rootful and rootless operation. section 9.1.1
The activation sequence is:
- systemd listens on the configured socket while no Podman process is running. section 9.1.1
- A client connection causes systemd to launch podman system service and hand it the socket. section 9.1.1
- After completing the API request, Podman waits briefly; it exits after five seconds without another connection. section 9.1.1
Enable a rootless socket
systemctl --user enable --now podman.socket The rootless socket appears beneath XDG_RUNTIME_DIR, such as /run/user/3267/podman/podman.sock. A curl request over that UNIX socket can probe the Podman API version.
Trace how systemd turns an incoming socket connection into an on-demand Podman service process. section 9.1.1
