Docker Agent: Build AI Agents That Talk to Each Other (YAML, No Glue Code)
Better Stack walks through Docker Agent, Docker's open-source runtime for building, running, and sharing AI agents from declarative YAML — positioned as 'to AI agents what docker run is to containers.' An agent is a YAML file (model, instructions, tools, optional sub-agents); the model line points at OpenAI, Anthropic, Gemini, OpenRouter, or a local Docker Model Runner; tools come from built-ins plus any MCP server. Three big ideas: agents become configuration (versioned, PR-reviewed, model-swapped with one line); agents are distributable through Docker Hub/OCI registries; and one command turns an agent into an HTTP API, MCP server, or A2A server. Two live demos: an on-call setup where a read-only log-analyst agent answers questions from a no-file-access assistant over A2A, and a Battleship match (GPT-6 Luna vs Claude Haiku 5.5, Kimi K3 as referee) that Haiku wins 34 shots / 50% — explicitly a game, not a benchmark. Repo verified live (docker/docker-agent, Apache-2.0, Go, 4,357★); A2A is Google's Agent2Agent protocol.






