Skip to content

Notes from the field

How it runs

The adapter starts Tailscale's own tailscaled program inside its container, in userspace networking mode. No special container privileges, no TUN device and no host networking are needed. Tailnet traffic on port 443 is passed through (TCP, not decrypted) to the Protequ front door, so the front door's own certificate is what the browser sees.

State volume

The container runs as an unprivileged user and the image has no shell, so a bind-mounted host folder (which Docker creates owned by root) would not be writable. The installer therefore mounts /var/lib/tailscale as a named Docker volume (adapter-tailscale-vol1, prefixed by the compose project name). Docker fills it from the image, so the unprivileged user owns it, and it survives restarts, container re-creation and docker compose down. The installer keeps the volume when it is run again, so the node keeps its name, Tailscale IP and identity. The first installer run that introduces named volumes creates an empty one, so the node registers once more using the auth key; delete the old machine entry in the Tailscale console.

Gotchas

  • Parameters are read when the device starts. Edit, then restart the device.
  • A reusable key is required if the install may ever re-register (for example after the volume is removed).
  • The adapter does not add the Tailscale name to the sign-in allow-list; enter it under Network access in the installer (see the connection guide).
  • The Tailscale program version is pinned in the image; upgrading it means a new adapter release.