System(d) container for use with Podman Machine, MicroShift, OpenShift Local and Podman Desktop installations, etc.
Start the system container. You can choose between the following options: Debian, Fedora or RHEL UBI9
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd:latest
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd/fedora:latest
$ podman run -d --name=tailscale \
--hostname $HOSTNAME-tailscale \
--network=host --systemd=always \
--cap-add=NET_ADMIN --cap-add=NET_RAW \
ghcr.io/spotsnel/tailscale-systemd/ubi9:latest
and register the node to your Tailnet
$ podman exec -it tailscale tailscale up
To authenticate, visit:
https://login.tailscale.com/a/...
or use the Podman Desktop terminal to do so.
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 tailscale)
$ systemctl --user enable --now container-tailscale
$ loginctl enable-linger $USER