Connect Your First Agent
Agents are lightweight Go binaries that run on your infrastructure, scan containers for updates, and execute deployments. This guide walks you through connecting your first Docker agent.
Prerequisites
- Tiaki control plane running (see Installation)
- A machine with Docker containers you want to monitor
Step 1 — Create an agent in the UI
- Open the Tiaki dashboard at http://localhost:3001
- Navigate to Agents in the sidebar
- Click New Agent
- Give it a descriptive name (e.g.
production-serverorhomelab) - Select type Docker (VM)
- Click Create
Copy your API key
The API key is shown only once. Copy it immediately and store it securely.
Step 2 — Configure the agent
Add the API key to your .env file on the machine where the agent will run:
.env
AGENT_API_KEY=your-api-key-here
If the agent runs on a different machine than the control plane, also set the control plane URL:
.env
CONTROL_URL=https://tiaki.your-domain.com
AGENT_API_KEY=your-api-key-here
Step 3 — Start the agent
docker compose --profile agent up -d agent
The agent will:
- Register with the control plane using the API key
- Scan all running Docker containers
- Check each container's image registry for newer versions
- Report results back to the dashboard
Verify the connection
Back in the Tiaki dashboard, go to Agents. Your agent should appear with a green status indicator and show the last seen timestamp.
Click on the agent to see:
- All discovered containers
- Available updates
- Deployment history
Kubernetes agent
To connect a Kubernetes cluster, select type Kubernetes (K8s) when creating the agent. See Kubernetes Agent Configuration for the full setup guide.