tailscale-dev / docker-guide-code-examples

https://tailscale.com/blog/docker-tailscale-guide
89 stars 28 forks source link

Container connection fails if Tailscale is running on the host #10

Closed jharveyb closed 1 month ago

jharveyb commented 2 months ago

I would like to set up the Immich stack as a Tailscale node, similar to the https://github.com/tailscale-dev/docker-guide-code-examples/tree/main/05-ts-immich-gpu example.

However, if I have Tailscale running on the host machine (which is running the Docker images), the Tailscale connection of the docker container never initializes. AFAICT, the DNS setup is misconfigured somehow and the container can not resolve any names, including the Tailscale DERP servers.

The host Tailscale server is configured to accept DNS from the admin panel, but turning that off did not resolve the issue. Only turning off the host Tailscale server allowed the Immich container to join the Tailscale network.

jharveyb commented 1 month ago

Running with tailscale 1.68.2 I longer see this issue. Would be good to know the root cause / have more clarify on if I should expect docker bridge networks to 'just work' with Tailscale.

ironicbadger commented 1 month ago

Closing as issue appears resolved. Your experience in the original post is not expected behaviour. If you continue to see this please open an issue against Tailscales. Thanks!