I built a docker container!

I have been searching for some docker containers with support and documentation. I have read rnorth’s work and found a couple of resources. But I really wanted a docker container that only had a single deployment step and published to a public repo.

The other ones I have found seem to require you to launch the container (Which starts the tailscaled process) and then exec another command for the tailscale up portion.

So I am not sure if anyone else will find this helpful. I am still testing and building.
https://hub.docker.com/repository/docker/icsy7867/tailscale

You can run tailscale as a single run command (ROUTE and AUTHKEY ENV are optional):
docker run -d --name wg --privileged -e "ROUTE=172.20.30.0/24" -e "AUTHKEY=tskey-d1234567890" -v /var/lib:/var/lib -v /dev/net/tun:/dev/net/tun icsy7867/tailscale:test

If you dont use an authkey, you can grab the login URL from the docker logs:
docker logs wg 2>&1 | grep -A 2 "To auth"

I can use tailscale to access my home network through my docker container (Tested via 4g and other wifi). I may add other ENV variable support, but currently this suits my needs unless others would like the functionality.

1 Like