

The official Tailscale subreddit. Not routinely monitored by Tailscale employees. Please contact support via https://tailscale.com/contact/support if you need further help.
Installing Tailscale in a Docker container
Help Needed
I've been pulling my hair out for a week now trying to install Tailscale in a Docker container.
- Following the Tailscale Docker image guide returns a Dockerfile error;
- Following this L1T guide I managed to get it installed, but the exit node wouldn't work because ip6tables_filter couldn't be found.
Do any of you guys know a guide on how to install Tailscale on Docker and get the exit node working?
Sort by:
Best
Open comment sort options
Best
Top
New
Controversial
Old
Q&A
This is my docker compose for Tailscale:
The ip6tables error you’re getting is because your host kernel doesn’t have that loaded. Edit
/etc/modules
and add a line that saysip6_tables
.You’ll also need to enable IP forwarding. Edit
/etc/sysctl.conf
and add these two lines:That should be all you need.
Edit: The first volume there, you should choose a host path that makes sense for you. I keep all my Docker volumes in
/srv/docker/
, but maybe you do something different there.I'll try your compose later today, thanks.
The IP forwarding part I'd already done, both on host os and in the container. What I havent yet tried is editing /etc/modules and adding the line.
This almost works but where do I put my tailscale login and password?
Is it posible to connect to exit node from tailscale in docker. As im adding --exit-node=100.64.x.x. and nothing happens...
Can you post a screenshot of the command you ran and the full error?
What host OS are you using?
Can you post the full command on what you are running the CLI and the error you are getting?
Any reason why you arent doing this in docker compose?
https://www.reddit.com/r/Tailscale/comments/169qdzu/setup_tailscale_exit_node_in_a_docker_compose/
Just wondering
The compose in the post doesn't even compile, I keep getting errors on
There is an error in the yaml syntax: YAMLSemanticError: Plain value cannot start with a tab character
EDIT: I managed to fix that error by copying a known good compose file and editing in the values that the post provided. Still, nothing was fixed as I still get this error when running tailscale status
Rootless or rootful docker?
I run docker from my root account