tailscale / tailscale/tailscale

`tailscale web` does not allow login from Docker container (including Home Assistant)

Open
#15,065 14 comments 7 reactions 0 assignees View on GitHub
bug OS-linux seeking-contribution
Dominant language
Go
Stars
36.5k
Forks
3.2k
Avg merge
2d 3h
Merged PRs (30d)
123

Description

### What is the issue?

`tailscale web` for a tailscaled running in a Docker container fails with "Failed to login". Looking at the web console, there is an "invalid origin" error.

### Steps to reproduce

1. ```
docker create -i -t --name=Tailscale --privileged \
--net=host \
--cap-add NET_ADMIN \
--cap-add NET_RAW \
--cap-add SYS_ADMIN \
-v /share/Docker/Tailscale:/var/lib/tailscale:rw \
-v /dev/net/tun:/dev/net/tun \
--restart unless-stopped \
tailscale/tailscale:latest tailscaled --port=41641```
2. `docker exec Tailscale tailscale web`
3. Go to `http://localhost:8088` and try to log in

### Are there any recent changes that introduced the issue?

_No response_

### OS

Linux

### OS version

Reproduced on Fedora 41, ASUSTOR NAS

### Tailscale version

1.80.0

### Other software

_No response_

### Bug report

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.