Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spotsnel/tailscale-systemd
Tailscale System(d) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations
https://github.com/spotsnel/tailscale-systemd
container debian podman rhel9 systemd tailscale
Last synced: about 2 months ago
JSON representation
Tailscale System(d) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations
- Host: GitHub
- URL: https://github.com/spotsnel/tailscale-systemd
- Owner: spotsnel
- Created: 2023-06-05T05:44:05.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-11T02:55:55.000Z (over 1 year ago)
- Last Synced: 2024-08-08T18:20:14.036Z (5 months ago)
- Topics: container, debian, podman, rhel9, systemd, tailscale
- Homepage:
- Size: 65.4 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - spotsnel/tailscale-systemd - Tailscale System(d) container for use with Podman Machine, Podman Desktop, MicroShift and OpenShift Local installations (others)
README
Tailscale (system container)
============================System(d) container for use with Podman Machine, MicroShift, OpenShift Local and Podman Desktop installations, etc.
![Screenshot](./images/screenshot.png)
### Usage
#### Container creation
Start the system container. You can choose between the following options: [Debian](./#debian-based), [Fedora](./#fedora-based) or [RHEL UBI9](./#rhel-ubi9-based)##### 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 upTo 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
```