github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/contrib/systemd/README.md (about) 1 # Setting up Podman service for systemd socket activation 2 3 ## system-wide (podman service run as root) 4 5 1. copy the `podman.service` and `podman.socket` files into `/etc/systemd/system` 6 1. `systemctl daemon-reload` 7 1. `systemctl enable podman.socket` 8 1. `systemctl start podman.socket` 9 1. `systemctl status podman.socket podman.service` 10 11 Assuming the status messages show no errors, the libpod service is ready to respond to the APIv2 on the unix domain socket `/run/podman/podman.sock` 12 13 ### podman.service 14 You can refer to [this example](https://github.com/containers/podman/blob/master/contrib/systemd/system/podman.service) for a sample podman.service file. 15 ### podman.socket 16 You can refer to [this example](https://github.com/containers/podman/blob/master/contrib/systemd/system/podman.socket) for a sample podman.socket file. 17 18 ## user (podman service run as given user aka "rootless") 19 20 1. `mkdir -p ~/.config/systemd/user` 21 1. copy the `podman.service` and `podman.socket` files into `~/.config/systemd/user` 22 1. `systemctl --user enable podman.socket` 23 1. `systemctl --user start podman.socket` 24 1. `systemctl --user status podman.socket podman.service` 25 26 Assuming the status messages show no errors, the libpod service is ready to respond to the APIv2 on the unix domain socket `/run/user/$(id -u)/podman/podman.sock` 27 28 ### podman.service 29 You can refer to [this example](https://github.com/containers/podman/blob/master/contrib/systemd/user/podman.service) for a rootless podman.service file. 30 31 ### podman.socket 32 You can refer to [this example](https://github.com/containers/podman/blob/master/contrib/systemd/user/podman.socket) for a rootless podman.socket file.