New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom tailscale socket path #10663
Comments
Will test it out today! |
@kevinpollet can confirm that Traefik now refers to the correct socket path. Doesn't fix my issue, unfortunately (for some reason the file is not recognized), but this is an improvement nonetheless. Thanks for the swift work! My issue is specifically in Docker logs:
but then this file does exist: ls -alh /volume1/@appdata/Tailscale/tailscaled.sock
srw-rw-rw- 1 tailscale tailscale 0 Apr 16 13:25 /volume1/@appdata/Tailscale/tailscaled.sock weird! |
Hey @OverHash, |
Hey @emilevauge I do indeed mount the socket inside the container. My
an interesting point I had not noticed before: there is both a $ tailscale
[...]
FLAGS
--socket string
path to tailscaled socket (default /var/packages/Tailscale/var/tailscaled.sock) which exists on both my host and (theoretically, on the mounted container): user@host:/volume1/path/to/router$ ls -alh /var/packages/Tailscale/var/tailscaled.sock
srw-rw-rw- 1 tailscale tailscale 0 Apr 16 13:25 /var/packages/Tailscale/var/tailscaled.sock unfortunately I can't figure out how to bash into the traefik docker container, as there is no
Is there some networking I'm missing here? there's no mention of funny networking stuff I would need to do on the docs. I'm guessing this problem may not exist if I ran Tailscale on the same Docker network as Traefik (rather than on the host machine, as I currently do). Not quite sure how to proceed with figuring out this issue. Thanks for your time! |
Welcome!
What did you expect to see?
Currently Traefik does not support setting a custom socket path to the tailscaled process.
On Unix systems, Traefik will assume that the path is at
/var/run/tailscale/tailscaled.sock
(see https://github.com/tailscale/tscert/blob/28a91b69a0467442178b62e2cfb9ab272ed3b64c/internal/paths/paths.go#L35-L37).Some systems don't have the socket path at this location, and so it is necessary to specify a custom path to the socket.
tscert
supports using theTS_SOCKET
env variable to specify this location, but this does not currently work with traefik v3 / traefik master.The text was updated successfully, but these errors were encountered: