Docker Agent
Generated on 25 Mar 2026 from the Docker Agent catalog page
What is Docker Agent?
Docker Agent is Docker’s cutting-edge AI agent framework that lets you create and run intelligent AI agents with specialized knowledge, tools, and capabilities. Think of it as building a team of virtual experts that work together to solve problems for you.
Built on modern AI technologies, Docker Agent offers:
- Multi-agent architecture - Create specialized agents for different domains
- Rich tool ecosystem - Agents can use external tools and APIs via the MCP protocol
- Smart delegation - Agents automatically route tasks to the most suitable specialist
- YAML configuration - Simple, declarative model and agent configuration
- Advanced reasoning - Built-in “think”, “todo” and “memory” tools for complex problem-solving
- Multiple AI providers - Support for OpenAI, Anthropic, Google Gemini, and Docker Model Runner
Key Features
- Create intelligent AI agents with specialized capabilities
- Build multi-agent teams that collaborate on complex tasks
- Use Model Context Protocol (MCP) tools for extended functionality
- Simple YAML-based configuration
- Support for both cloud-based and local AI models
- Push and pull agents from Docker Hub
- Built-in reasoning and memory capabilities
- Docker-based deployment for easy management
System Requirements
Docker Agent is installed as a binary on Ubuntu 24.04 and requires Docker for containerized AI models and tools.
| Use Case | RAM | CPU |
|---|---|---|
| Basic agents with cloud APIs | 1GB | 1CPU |
| Local models (small) | 4GB | 2CPU |
| Local models (medium) | 8GB | 4CPU |
| Local models (large) | 16GB+ | 8CPU+ |
Note: Using cloud AI providers (OpenAI, Anthropic, Google) requires minimal resources. Running local models via Docker Model Runner requires more resources depending on model size.
Software Included
| Package | Version | License |
|---|---|---|
| Docker Agent | v1.36.1 | Apache License 2.0 |
Creating an App using the Control Panel
Click the Deploy to DigitalOcean button to create a Droplet based on this 1-Click App. If you aren’t logged in, this link will prompt you to log in with your DigitalOcean account.
Creating an App using the API
In addition to creating a Droplet from the Docker Agent 1-Click App using the control panel, you can also use the DigitalOcean API. As an example, to create a 4GB Docker Agent Droplet in the SFO2 region, you can use the following curl command. You need to either save your API access token to an environment variable or substitute it in the command below.
curl -X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer '$TOKEN'' -d \
'{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"dockeragent"}' \
"https://api.digitalocean.com/v2/droplets"Getting Started After Deploying Docker Agent
Quick Start
- Deploy the Droplet – Choose this 1-Click App from the DigitalOcean Marketplace.
- SSH into your Droplet –
ssh root@your-droplet-ip - Set your API key – Configure access to your preferred AI provider (see below).
- Run an agent – Use the included examples or create your own.
Setting Up API Keys
Set the environment variable for the AI provider you plan to use:
# For OpenAI models (GPT-4, GPT-3.5, etc.)
export OPENAI_API_KEY=your_openai_key_here
# For Anthropic models (Claude)
export ANTHROPIC_API_KEY=your_anthropic_key_here
# For Google Gemini models
export GOOGLE_API_KEY=your_google_key_here
You only need API keys for the providers you use. For local models via Docker Model Runner, no API key is required.
Run Your First Agent
Try the included example agents (use the docker-agent CLI—Docker Agent’s command-line tool):
# Run a basic agent (requires OPENAI_API_KEY)
docker-agent run /opt/docker-agent/examples/basic_agent.yaml
# Run a local agent using Docker Model Runner (no API key needed)
docker-agent run /opt/docker-agent/examples/dmr.yaml
# Other examples
docker-agent run /opt/docker-agent/examples/pirate.yaml # Fun pirate assistant
docker-agent run /opt/docker-agent/examples/pythonist.yaml # Python programming expert
docker-agent run /opt/docker-agent/examples/todo.yaml # Task manager with memory
Create Custom Agents
Use the interactive agent builder:
# Interactive mode—follow the prompts
docker-agent new
# Generate with a specific model
docker-agent new --model openai/gpt-4o-mini
# Generate with a local model via DMR
docker-agent new --model dmr/ai/gemma3:2B-Q4_0
Using Docker Model Runner (DMR)
Docker Model Runner lets you run AI models locally without API keys:
- Enable DMR in Docker Engine (may be enabled by default).
- Pull a model – Docker can pull models when needed.
- Run agents using the
dmrprovider in your configuration.
Example DMR configuration:
version: "2"
agents:
root:
model: local-model
description: A helpful AI assistant
instruction: You are a knowledgeable assistant.
models:
local-model:
provider: dmr
model: ai/gemma3:2B-Q4_0
max_tokens: 8192
Agent Store – Push and Pull Agents
Share agents via Docker Hub:
# Pull an agent from Docker Hub
docker-agent pull docker.io/username/my-agent:latest
# Push your agent to Docker Hub
docker-agent push ./my-agent.yaml docker.io/username/my-agent:latest
# Run an agent from Docker Hub
docker-agent run creek/pirate
Configuration
Basic Agent Configuration
Agents are configured with YAML. Minimal example:
version: "2"
agents:
root:
model: openai/gpt-4o-mini
description: A helpful AI assistant
instruction: |
You are a knowledgeable assistant that helps users with various tasks.
Be helpful, accurate, and concise in your responses.
models:
openai:
provider: openai
model: gpt-4o-mini
max_tokens: 4096
Multi-Agent Teams
Create specialized agents that work together:
version: "2"
agents:
root:
model: coordinator
description: Main coordinator agent
instruction: |
You coordinate tasks and delegate to specialized agents.
sub_agents: ["researcher", "writer"]
researcher:
model: research-model
description: Research specialist
instruction: You research topics and gather information.
writer:
model: writing-model
description: Writing specialist
instruction: You create well-written content based on research.
models:
coordinator:
provider: anthropic
model: claude-sonnet-4-0
research-model:
provider: openai
model: gpt-4o
writing-model:
provider: anthropic
model: claude-sonnet-4-0
Adding Tools via MCP
Extend agents with Model Context Protocol tools:
version: "2"
agents:
root:
model: assistant
description: Assistant with web search capabilities
instruction: You help users by searching the web when needed.
toolsets:
- type: mcp
ref: docker:duckduckgo
models:
assistant:
provider: openai
model: gpt-4o-mini
max_tokens: 4096
Common Commands
# View all available commands
docker-agent --help
# Run an agent
docker-agent run ./my-agent.yaml
# Create a new agent interactively
docker-agent new
# Build a Docker image for your agent
docker-agent build ./my-agent.yaml my-agent:latest
# Pull an agent from Docker Hub
docker-agent pull creek/pirate
# Push your agent to Docker Hub
docker-agent push ./my-agent.yaml username/my-agent:latest
# View agent readme
docker-agent readme ./my-agent.yaml
Examples and Documentation
- On-droplet:
/opt/docker-agent/examples/– Example configurations - Quick reference:
/opt/docker-agent/README.txt - GitHub: docker/docker-agent – examples
Example categories: basic single-agent configs, advanced agents with tools, and multi-agent teams.
Use Cases
- Code assistance – Agents for different languages and frameworks
- Research and analysis – Search, analyze, and summarize information
- Content creation – Multi-agent teams for research, writing, and editing
- Task automation – Agents with filesystem, git, and system tools
- Custom workflows – Specialized agent teams for your use cases
Support and Resources
- GitHub: github.com/docker/docker-agent
- Usage: USAGE.md
- Contributing: CONTRIBUTING.md
- DigitalOcean Community: https://www.digitalocean.com/community
- Docker Community Slack: https://dockercommunity.slack.com/archives/C09DASHHRU4
Post-Deployment
After deployment you have:
- Docker Agent CLI (
docker-agent) at/usr/local/bin/docker-agent - Docker installed for containerized models and tools
- Example configurations in
/opt/docker-agent/examples/ - Quick reference at
/opt/docker-agent/README.txt
Next Steps
- Set your preferred AI provider API key.
- Run the example agents.
- Create a custom agent with
docker-agent new. - Explore MCP tools and multi-agent setups.
Important Notes
- API keys – Store in environment variables; avoid committing them.
- Docker Model Runner – Ensure enough RAM for local model inference.
- MCP tools – Some may need extra setup (e.g., npm, cargo).
- Networking – Docker Agent is CLI-based; no open ports required for basic use.
- Updates – Check version with
docker-agent --version; update by installing newer releases from docker/docker-agent releases.
Ideal for developers, researchers, and teams who want to use AI agents for complex tasks and automation.