brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: tailscale set --auto-update keeps a device on the latest client by itself

Network and access
~/tips/tip-tailscale-set-auto-update

sudo tailscale set --auto-update

Makes a Tailscale device install new client releases on its own, without you checking the admin console.

Tailscale clients on a server are the ones I’d forget to update. The Machines page in the admin console shows a grey arrow when an update is out and a red one when it’s a security update, but that only helps if you go and look. One flag fixes it for each device.

Run this on the device:

sudo tailscale set --auto-update

From then on the client updates itself, using the same mechanism it was installed with. On Debian or Ubuntu that means the package manager does the upgrade. Tailscale doesn’t push a release to everyone on day one: they watch stability for several days first, and updates are scheduled around the device’s activity. Turning it off again is tailscale set --auto-update=false.

There’s also a tailnet-wide toggle, Auto-update new devices under Device management in the admin console, and it’s on by default for tailnets made since February 2024. It only covers devices you add from now on, though. Older devices keep their own setting, which is exactly why the CLI flag is useful. To see what you’re running against the latest release:

tailscale version --upstream

The caveats are about where it doesn’t work. Auto-updates aren’t supported on Synology or on Arch-based distros. Inside a Docker container the setting doesn’t survive a restart, and Tailscale’s own advice for containers is to use the stable image tag rather than this flag. If you pin a version tag such as v1.76.0 and also turn on auto-update, the client drops back to that version on every restart and then updates again. For my containers I’d follow that advice; for a plain Linux box or VM, I’d switch this on and stop thinking about it.

Further reading: Tailscale docs: Update Tailscale, Tailscale CLI reference

More Network and access tips scp -3 alice@server-a:/var/backups/db.sql.gz bob@server-b:/srv/restore/ tailscale exit-node suggest tailscale lock sign nodekey:1abddef1 tlpub:abcdef12 wg genpsk > peer1.psk Table = off All Network and access tips (163) All topics

Link