> For the complete documentation index, see [llms.txt](https://docs.pagerly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagerly.io/sre-ai-agent/data-sources/docker.md).

# Docker

## What the Agent Can Do

* List containers and their states — find crashed, restarting, or unhealthy containers
* Inspect containers — config, restart count, OOM kills, health check results
* Get container logs — find errors, crashes, OOM kills

## Setup Instructions

1. Expose Docker Engine API over TCP (default port 2375/2376)
2. **Docker Desktop:** Enable in Settings > General > "Expose daemon on tcp\://localhost:2375"
3. **Remote hosts:** Configure TLS and expose securely
4. Enter the Docker API URL in the Pagerly dashboard

## Required Credentials

| Field                      | Description                      | Example                   |
| -------------------------- | -------------------------------- | ------------------------- |
| **Docker API URL**         | Docker Engine API URL (TCP mode) | `http://docker-host:2375` |
| **API Token** *(optional)* | Bearer token if behind a proxy   | —                         |

{% hint style="warning" %}
**Never expose an unauthenticated Docker API to the internet.** Use TLS certificates or an authenticating reverse proxy.
{% endhint %}

## Docs

* [Docker Engine API Reference](https://docs.docker.com/reference/api/engine/)
