/tailscale-systemd

Tailscale System(d) (bootable) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations

MIT LicenseMIT

Tailscale (system container)

System(d) container for use with Podman Machine, MicroShift, OpenShift Local, Podman Desktop installations, Bazzite, Silverblue, etc.

Screenshot

Usage

Container creation

Start the system container. You can choose between the following options: Debian, Fedora or RHEL UBI9

Debian-based
$ 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
Fedora-based
$ 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
RHEL UBI9-based
$ 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

Node registration

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.

Systemd

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