Unraid has a Use Tailscale switch in every Docker container template. I run a lot of my containers with it, and it is the easiest way I know to give one app its own address on your tailnet without exposing the whole server. This guide takes one container from zero to https on your tailnet, and lists where it likes to break.
- Time
- 5 min
- Steps
- 3
- Updated
- 19 Nov 2026
You will learn
- Switch it on for one container
- Check that it worked
- The usual ways it breaks
What you get, and what you need
The switch gives a container its own device on your tailnet, with its own name and its own HTTPS certificate. The Unraid docs say it works by taking the container’s original entrypoint, mounting a script called tailscale_container_hook into it, and running that script first to install and start the Tailscale client.
That is different from the Tailscale plugin, which connects the Unraid host. With the plugin alone, bridge containers are reachable on the server’s Tailscale address. The per-container switch gives each app a separate identity, and you can share one container with someone without sharing the server.
You need Unraid 7 or newer (the official page is written for 7 and later; it names no exact minimum build), a tailnet, and a container that is not on host network mode, because that mode cannot use the integration. The docs do not say which Tailscale client version gets installed in the container, so I can’t give you that number. They also recommend installing the plugin and signing in first. I’d do that: it is one install and the container settings get friendlier.
Step 1 of 3: Switch it on for one container
Pick a boring container first. The docs warn that containers with custom networking or isolation needs may not work, and their advice is to try a non-critical one first. I agree.
1. Docker tab, click the container, Edit. Set Use Tailscale to on. More fields appear.
2. Fill in the Tailscale hostname. It must be unique on your tailnet. Warning: the HTTPS certificate name ends up in a public certificate log, so don’t put anything private in it. Use something generic like this:
photos-test
3. Click Show advanced settings and check State directory. It must point inside a path that is mapped to persistent storage, for example:
/config/.tailscale_state
Here /config stands for whatever path the container maps to appdata. Without this the container gets a new identity on every recreate, and your tailnet slowly fills with ghost devices. If you see Couldn’t detect persistent Docker directory for .tailscale_state, the container has no suitable mapped path and you set the directory by hand.
4. Switch Serve on if you want the web UI on your tailnet. Leave Funnel off: Funnel puts the app on the public internet, and the docs point out that neither option adds a login. Your app has to do that itself.
5. Apply. Unraid recreates the container.
Step 2 of 3: Check that it worked
Open the Machines page in the Tailscale admin console. Your hostname should be there. If device approval is on for your tailnet, approve it. Then, from a phone on mobile data with Tailscale on, open this:
https://photos-test.your-tailnet.ts.net
Tailscale’s own Unraid page says a container reaches that address with a TLS certificate, as long as HTTPS certificates are enabled for your tailnet. MagicDNS gives you the short name inside the tailnet, so on your own devices photos-test alone is enough.
A caveat on keeping the LAN address as well: on a bridge network with userspace networking off, the docs say the original WebUI link may stop working. I’d test the old LAN address right away, since it may not have survived. Leave Userspace Networking as Unraid sets it. With it on, the container can’t start connections to other tailnet devices or use Tailscale DNS.
Step 3 of 3: The usual ways it breaks
The container starts without Tailscale. One forum thread (Unraid 7.0) shows the hook logging Can’t get Tailscale JSON. A moderator’s likely cause was a missing or very old ca-certificates package in the image. The thread does not confirm that for every case.
The app changed its entrypoint behaviour. The hook replaces the entrypoint, so images that expect their own, or run hardened, can fail. The EDAC.dev write-up ranks this switch last of its four options for exactly that reason: it modifies the container. Its alternatives are TSDProxy, the LinuxServer.io Tailscale mod and a sidecar container. When a container refuses, I’d go to a sidecar instead of fighting it.
Keys and expiry. Tailscale’s page says the plugin may warn that the key will expire, and that this is normal and can be turned off in the admin console. For containers, that same page has you create a tag in your policy file and an OAuth client with read and write on Auth Keys. You then put --authkey and --advertise-tags in Tailscale Extra Parameters. Tagged devices don’t have the normal user key expiry, which is the reason to do it. I haven’t verified that in the admin console for this guide, so check the key expiry docs before you rely on it.
Old client. To update Tailscale in a container, open Advanced View and click Force update, or make a small edit and apply.
Free plans are limited to 100 devices. Every container is one, so don’t turn the switch on everywhere in a burst of enthusiasm.
Further reading
- Unraid docs: Tailscale
- Tailscale docs: Unraid
- EDAC.dev: Tailscale options for Docker containers
- On this site: Manage your Unraid server from anywhere with Tailscale and no open ports
- On this site: Lock down your tailnet with Tailscale ACLs and tags
- On this site: Send your tailnet's DNS through your own AdGuard Home with Tailscale split DNS
