Updated to a single command. No need to run the container and a separate "tailscale up" command!
Currently supports two environment variables and will hopefully add others in the future...
AUTHKEY = Auth Key generated from tailscale.com
ROUTE = Optional route to include if you are using to grant access
Full Example:
docker run -d --name wg --cap-add=NET_ADMIN -e "ROUTE=172.20.30.0/24" -e "AUTHKEY=tskey-1234567890" -v /var/lib:/var/lib -v /dev/net/tun:/dev/net/tun icsy7867/tailscale
If you do not use an authkey, you need to grab the auth URL:
docker logs wg 2>&1 | grep -A 2 "To auth"
NOTES Currently using Tailscale v1.38.1 https://github.com/tailscale/tailscale/releases/tag/v1.38.1
Content type
Image
Digest
sha256:24162601c…
Size
30.8 MB
Last updated
almost 3 years ago
docker pull icsy7867/tailscale