Skip to content

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

Notifications You must be signed in to change notification settings

spotsnel/tailscale-systemd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tailscale (system container)

System(d) container for use with Podman Machine, MicroShift, OpenShift Local and Podman Desktop installations, 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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages