/docker-skills:docker-agent-deployfrom docker-skills
Serves Docker Agents as MCP, HTTP API, A2A, ACP, or OpenAI-compatible chat endpoints. Publishes and pulls agents via OCI registries. Runs automated evaluations with scoring metrics and CI regression gates.
Ships in docker-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill owns the integration surface of Docker Agent: making an agent
reachable by other software (docker agent serve), distributing it through
an OCI registry the way container images are distributed (docker agent share), and proving it still behaves after a change (docker agent eval).
It assumes the agent config already exists — see docker-agent-config for
authoring it, and docker-agent-run for interactive/local invocation.
Activate this skill when:
Do not use this skill when:
docker-agent-config.--safety/--sandbox, or aliases — use docker-agent-run.Five server modes, each with its own default loopback listen address — never expose any of them beyond loopback without authentication:
| Mode | Default listen | Auth flag | Has --safety? |
|---|---|---|---|
serve mcp | 127.0.0.1:8081 | --auth-token (only with --http) | Yes (only with --http) |
serve api | 127.0.0.1:8080 | --auth-token | No |
serve chat | 127.0.0.1:8083 | --api-key / --api-key-env | Yes |
serve a2a | 127.0.0.1:8082 | --auth-token | Yes |
serve acp | (stdio only) | n/a | No |
docker agent serve mcp ./agent.yaml --http --listen 127.0.0.1:9090 --auth-token YOUR_AUTH_TOKEN
serve mcp defaults to stdio transport (for local clients like Claude
Desktop); pass --http only when you need a network-reachable MCP
endpoint, and set --auth-token whenever you do.
Binding any server flag to a non-loopback address without an auth
token/key is refused; --insecure-no-auth exists to force it and must be
treated as a deliberate, documented exception, never a default.
serve mcp (with --http), serve chat, and serve a2a expose
--safety (strict/balanced/restricted/autonomous); Docker's docs
state it defaults to restricted for these modes when unset. serve api
and serve acp expose no --safety flag at all. Never raise --safety
to autonomous on a network-reachable listener; if a served agent must
approve more, prefer balanced and keep auth enabled.
serve api accepts a directory instead of a single file: every
.yaml/.yml/.hcl in it is exposed under /api/agents. Use
--session-workingdir-root to confine session working directories when
the server is reachable by more than one user.
docker login auth:
docker agent share push ./agent.yaml docker.io/username/my-agent:latest
docker agent share pull docker.io/username/my-agent:latest
instruction_file contents are inlined into the pushed artifact
automatically, so a published agent stays self-contained — you do not need
to bundle the referenced files separately.sub_agents that reference the pushed artifact to a digest
(name@sha256:...) once published, to avoid a per-run registry lookup and
to guarantee the exact config a consumer gets.--force on share pull only when you intend to overwrite a local
copy that already exists; without it, an existing local config is left
untouched.evals/ directory next to the agent config by default;
each eval is one JSON session file capturing a user message, the recorded
tool calls, and an evals object with the scoring criteria./eval slash command in
the TUI to save the session, and edit in relevance/size/assertions
criteria afterward.--judge-model, default anthropic/claude-opus-5),
Size (S/M/L/XL response-length bucket), and Assertions (deterministic
checks; see the complete assertion-type list in references/eval-format.md).
Prefer assertions over relevance when a check can be exact: they need no
judge model and are deterministic, not approximation-prone.ANTHROPIC_API_KEY/OPENAI_API_KEY) are forwarded automatically.
GITHUB_TOKEN/GH_TOKEN are not forwarded automatically (they're
broad host credentials, not model keys) — pass them explicitly with
-e GITHUB_TOKEN when an agent's provider needs one (e.g.
github-copilot).--baseline:
docker agent eval ./agent.yaml --baseline results/2026-08-01-run.json --regression-tolerance 0.05
A previously-passing eval that now fails always gates regardless of
tolerance; cost changes are reported but never gate. A baseline or run
with zero evaluations (e.g. an --only pattern matching nothing) is
rejected rather than reported as passing.--keep-containers plus your runtime's exec to inspect a failed
eval's container; the eval's .db session file holds the full
conversation for offline debugging.--safety value used in the deployment before restarting the
listener — this catches an approval-policy regression before it reaches
traffic. If a rollout must be rolled back, restore the prior config and
safety flag; never restore an unauthenticated listener as a rollback
shortcut.agent.yaml, use docker-agent-config.docker-agent-run.references/eval-format.md — full eval session JSON schema and CLI flag table.references/sources.md — provenance of every rule in this skill.assets/eval-session-example.json — a minimal eval session file to copy and adapt.checks/verification.md — Verification runbook for serving, sharing, and evaluating an agent.agents/openai.yaml (opens in a new tab)assets/eval-session-example.json (opens in a new tab)checks/verification.md (opens in a new tab)evals/docker-agent-deploy.md (opens in a new tab)references/eval-format.md (opens in a new tab)references/sources.md (opens in a new tab)skill.yaml (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub docker/skills --plugin docker-skills11 skills in this plugin
/docker-agent-configUse this skill when creating or editing an agent.yaml (or .yml/.hcl) configuration file for Docker Agent (cagent), including defining agents, models/providers, built-in or MCP toolsets, multi-agent teams with sub_agents. Even if the user just says they want to "build an AI agent with Docker", "make a coding agent config", "add a tool to my agent", or "set up a team of agents", this skill applies. Covers agent properties (model, instruction, toolsets, sub_agents, fallback), the models/providers sections, built-in toolsets (filesystem, shell, think, todo, memory, fetch), MCP toolset references, and named commands./docker-agent-runUse this skill when running a Docker Agent with `docker agent run`, choosing a safety/approval mode, using the `--sandbox` isolation flag, setting up aliases, or troubleshooting a run (missing credentials, worktrees). Even if the user just says they want to "run my agent", "make my agent auto-approve tool calls", "run this agent safely", or "why can't my agent see my API key", this skill applies. Covers `--safety` (strict/balanced/restricted/autonomous), `--yolo`, `--sandbox` and its network allowlist, `--worktree`, `docker agent alias`, and `docker agent doctor`./docker-build-strategiesUse this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization./docker-compose-patternsUse this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides./docker-destructive-guardrailsUse this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to "clean up", "clear the cache", "start fresh", "wipe everything", "nuke it", "reset", "force remove", or "tear down" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — `docker rm`, `docker rm -f`, `docker container prune`, `docker kill`, `docker system prune`, `docker rmi`/`docker image rm`, `docker image prune -a`, `docker network rm`, `docker network prune`, `docker builder prune`, `docker buildx rm`, `docker context rm`, and standalone (non-Compose) `docker volume rm`/`docker volume prune`. Also indexes destructive commands owned by other Docker skills (Compose, sandbox, Desktop). Core rule — state exactly what will be lost and get explicit confirmation first, except narrow, low-friction Tier 1 container cleanup./docker-docsUse this skill to answer questions about any Docker product from current official Docker documentation instead of memory, even if the user just asks "how do I…", "does Docker support…", "what's the flag for…", or "is this still the right way" about Docker. Covers Docker Desktop, Engine, Build/Buildx/Build Cloud, Compose, Hub, Scout, Docker Hardened Images (DHI), Offload, Testcontainers, Docker Sandboxes (`sbx`, local and cloud sandboxes, Sandboxes API/SDK), Docker Agentic Platform, Docker Agent, MCP Catalog/Toolkit/Gateway, Model Runner, Gordon, and account, admin, security, and billing docs. Searches with the `search_docker_docs` MCP tool when available and otherwise falls back to `docs.docker.com/llms.txt` and per-page Markdown.Other plugins' skills for the same job