Join our Discord Server

Docker AI Tools Cheatsheet

← All cheatsheets
AIBeginner

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

docker ai "How do I debug a container?"

Ask Gordon a Docker question from the CLI.

docker model serve ai/llama3.2

Serve a local LLM with an OpenAI-compatible API.

AI-powered features

FeatureWhereWhat it does
Gordon AI CLIdocker ai <question>Ask Docker questions, get commands and configs.
Smart suggestionsDocker DesktopInline fix suggestions for errors.
Model Runnerdocker modelRun local LLMs with an OpenAI-compatible API.
MCP Integrationdocker mcpGive AI agents Docker tool capabilities via MCP.
Docker ExtensionVS CodeInline 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
Join our Discord Server