Containerized version of headscale for use with podman
Start the system container. You can choose between the following options: Debian, Fedora or RHEL UBI9
$ podman run -d --name=headscale \
--hostname $HOSTNAME-headscale \
--network=host --systemd=always \
ghcr.io/spotsnel/headscale-systemd:latest
$ podman run -d --name=headscale \
--hostname $HOSTNAME-headscale \
--network=host --systemd=always \
ghcr.io/spotsnel/headscale-systemd/fedora:latest
$ podman run -d --name=headscale \
--hostname $HOSTNAME-headscale \
--network=host --systemd=always \
ghcr.io/spotsnel/headscale-systemd/ubi9:latest
The lifecycle of the container can be maintained by the host using a systemd service unit:
$ (cd $HOME/.config/systemd/user && podman generate systemd --name --files headscale)
$ systemctl --user enable --now container-headscale
$ loginctl enable-linger $USER