# DockTail > DockTail is an open-source container that exposes Docker containers as native Tailscale Services, configured with `docktail.*` labels. DockTail Cloud is an optional paid service that monitors those hosts and services, explains why something is unreachable, and lets AI agents find the root cause of an incident over MCP or a REST API. DockTail runs as one container next to your apps (`ghcr.io/marvinvr/docktail:latest`) and needs the Docker socket and a Tailscale socket. DockTail Cloud is opt-in through one environment variable, `DOCKTAIL_CLOUD_KEY`. ## Docs - [Full documentation](https://docktail.org/llms-full.txt): every page below in one plain-text file - [Documentation as Markdown](https://docktail.org/docs.md): the same content, for Markdown readers - [Quick Start](https://docktail.org/docs/quick-start.md): Expose a Docker container as a Tailscale Service in minutes: tag the host, add DockTail to Docker Compose and label the app container. - [Installation](https://docktail.org/docs/installation.md): Install DockTail with Tailscale on the Linux host or as a Tailscale sidecar container, on rootless Docker, or as a static Linux binary. - [Platform Guides](https://docktail.org/docs/platforms.md): Run DockTail on Podman, Synology, Unraid, TrueNAS SCALE, macOS, Windows, Docker Swarm and Kubernetes, and how well each is known to work. - [Hardening](https://docktail.org/docs/security.md): Harden DockTail: what Docker socket access means, running it behind a read-only socket proxy, and dropping container privileges. - [Tailscale Admin Setup](https://docktail.org/docs/tailscale-admin.md): Set up the Tailscale side for DockTail: OAuth client or API key, ACL tagOwners and autoApprovers for services, the Funnel node attribute, and approvals. - [Labels](https://docktail.org/docs/labels.md): Every DockTail Docker label: service name, ports, protocols, paths, PROXY protocol, multiple services per container, Funnel and Cloud labels. - [Examples](https://docktail.org/docs/examples.md): Docker Compose examples for DockTail: HTTP and HTTPS services, SSH and databases over TCP, PROXY protocol, custom networks and public Funnel. - [DockTail Cloud](https://docktail.org/docs/cloud.md): DockTail Cloud monitors DockTail hosts and services, tells a container problem from a Tailscale exposure problem, and exposes an MCP server and API. - [Reference](https://docktail.org/docs/reference.md): DockTail reference: environment variables, supported protocols, cleanup behavior, Tailscale socket loss, version checks and the health check. - [How It Works](https://docktail.org/docs/how-it-works.md): How DockTail reconciles Docker containers with Tailscale Services: the event-driven loop, direct container IP proxying and host networking. ## Guides - [Expose Jellyfin Over Tailscale](https://docktail.org/docs/guides/jellyfin-over-tailscale.md): Expose Jellyfin over Tailscale with DockTail: one Docker Compose file, four labels, HTTPS at jellyfin.your-tailnet.ts.net, and no published ports. - [Expose Home Assistant Over Tailscale](https://docktail.org/docs/guides/home-assistant-over-tailscale.md): Expose Home Assistant over Tailscale with DockTail: Docker Compose labels, host networking, the use_x_forwarded_for and trusted_proxies fix for 400 errors. - [Migrate From TSDProxy To DockTail](https://docktail.org/docs/guides/migrate-from-tsdproxy.md): Migrate from TSDProxy to DockTail: map tsdproxy.* labels to docktail.* labels, set up Tailscale tags and OAuth, and move one container at a time. ## DockTail Cloud - [DockTail Cloud](https://docktail.org/cloud.md): what it does, plans and the 30-day trial ([web page](https://docktail.org/cloud/)) - [MCP server and API](https://docktail.org/cloud/agents.md): connect an AI agent to find the root cause of incidents ([web page](https://docktail.org/cloud/agents/)) - [Setup](https://docktail.org/docs/cloud/#how-to-enable): account, workspace, plan, then `DOCKTAIL_CLOUD_KEY` on the agent - [API and MCP reference](https://docktail.org/docs/cloud/#api-and-mcp-server): keys, scopes, endpoints and tools - [Plans and pricing](https://docktail.org/cloud/#pricing) - [OpenAPI document](https://cloud.docktail.org/api/v1/openapi.json) ## Agent Guidance - The user signs up at https://cloud.docktail.org/login and creates the workspace and plan; an agent cannot. Homelab and Team start with a 30-day trial that needs a card; a workspace connects no host until it has a plan or a running trial. - To connect a host, set `DOCKTAIL_CLOUD_KEY` (a `dtc_...` workspace key from Cloud) on the DockTail container and recreate it. - To use the MCP server (`https://cloud.docktail.org/api/mcp`) or the REST API (`https://cloud.docktail.org/api/v1`), the user creates an API key (`dtk_...`) on the MCP or API page in Cloud and sends it as `Authorization: Bearer dtk_...`. A `read` key is enough to investigate; only `read_write` can acknowledge, resolve or start maintenance. - Prefer https://docktail.org/llms-full.txt over the README for complete configuration details. ## Optional - [Source code](https://github.com/marvinvr/docktail) - [Releases](https://github.com/marvinvr/docktail/releases) - [Security and data handling](https://docktail.org/security/) - [Changelog](https://docktail.org/changelog/)