# create storage for state
podman volume create tailscaled-state
# launch the container
podman run -d \
--rm \
--name tailscaled \
--hostname $HOSTNAME \
--env TS_USERSPACE=false \
--env TS_STATE_DIR=/var/lib/tailscale \
--label "io.containers.autoupdate=registry" \
--volume tailscaled-state:/var/lib/tailscale \
--volume /lib/modules:/lib/modules:ro \
--device /dev/net/tun \
--network host \
--privileged \
ghcr.io/guest42069/tailscale:latest
(cd /etc/systemd/system && podman generate systemd --new --name --files tailscaled) && systemctl enable --now container-tailscaled
# ... authenticate via provided link in the logs ...
podman logs tailscaled
# check the status or run other commands, note the custom socket path.
podman exec tailscaled tailscale --socket=/tmp/tailscaled.sock status
Created
February 4, 2025 09:11
-
-
Save gbraad/ce485388e35dfc97047ade226c4219f9 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment