Skip to content

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

Open
@tendstofortytwo

Description

@tendstofortytwo

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions