← All cheatsheets
Docker AI Tools Cheatsheet
Use Docker AI assistant Gordon and integrated AI features for smarter container workflows.
What it is
Docker AI Tools includes Gordon (Docker’s AI CLI assistant), AI-powered suggestions in Docker Desktop, Docker Model Runner for local LLMs, and MCP integration for AI agents.
Quick start
Ask Gordon a Docker question from the CLI.
Serve a local LLM with an OpenAI-compatible API.
AI-powered features
| Feature | Where | What it does |
|---|---|---|
| Gordon AI CLI | docker ai <question> | Ask Docker questions, get commands and configs. |
| Smart suggestions | Docker Desktop | Inline fix suggestions for errors. |
| Model Runner | docker model | Run local LLMs with an OpenAI-compatible API. |
| MCP Integration | docker mcp | Give AI agents Docker tool capabilities via MCP. |
| Docker Extension | VS Code | Inline Dockerfile and Compose assistance. |
Real-world examples
Ask Gordon to explain a Docker error
docker logs myapp 2>&1 | docker ai "What does this error mean?"Generate a Dockerfile with AI
docker ai "Write a production Dockerfile for a Python FastAPI app"Best practices
- Use Gordon to explain unfamiliar Docker errors — paste the log output directly.
- Use Docker Model Runner for privacy-sensitive AI workloads (no data leaves your machine).
- Connect AI agents to Docker via MCP Toolkit for automated container management.
Related cheatsheets
Last reviewed: 2026-06-15