Expón Docker Agents como servidores, distribúyelos a través de registros OCI y realiza evaluaciones de calidad automatizadas.
- Estrellas en GitHub
- 626
- Archivos
- 7
- Último commit
- 10 nov 2026
- Licencia
- Apache-2.0
- Herramientas permitidas
- —
¿Qué hace la skill docker-agent-deploy?
docker-agent-deploy es una agent skill. Expón Docker Agents como servidores, distribúyelos a través de registros OCI y realiza evaluaciones de calidad automatizadas.
Resumen generado a partir del SKILL.md de la skill.
Sobre la skill docker-agent-deploy
Esta SKILL permite exponer Docker Agents como servidores accesibles por red, distribuirlos mediante registros OCI y medir su rendimiento. Está diseñada para desarrolladores que necesitan ir más allá de la ejecución local para que sus agentes sean accesibles vía MCP, APIs HTTP, chat compatible con OpenAI o protocolos A2A y ACP. Al usar el comando docker agent serve, puedes alojar agentes con tokens de autenticación y niveles de seguridad específicos para garantizar un acceso seguro a la red.
Más allá del despliegue, la SKILL facilita la distribución de agentes mediante el comando docker agent share, lo que te permite hacer push y pull de configuraciones de agentes hacia y desde registros como Docker Hub. Para el control de calidad, el comando docker agent eval ejecuta evaluaciones automatizadas dentro de contenedores aislados. Este proceso utiliza métricas de puntuación como F1 scores en llamadas a herramientas, relevancia y aserciones deterministas para verificar el comportamiento del agente. También puedes implementar pruebas de regresión en pipelines de CI comparando los nuevos resultados con un baseline para asegurar que las actualizaciones no degraden el rendimiento.
Lo que un agente puede hacer con ella
- 1Exponer un agente como un MCP serverConvierte una configuración de agente local en un endpoint MCP accesible por red para usarlo en Claude Desktop.
- 2Distribuir agentes vía registros OCIPublica tu configuración de agente en Docker Hub para que otros puedan hacer pull y usarla fácilmente.
- 3Automatizar el testing de calidad del agenteEjecuta evaluaciones automatizadas para detectar regresiones en la llamada a herramientas o en la relevancia antes de desplegar cambios.
- 4Verificar la configuración de seguridad del agenteAsegúrate de que los cambios en la configuración de un agente no reduzcan accidentalmente las políticas de aprobación de seguridad requeridas.
Escrito a partir del SKILL.md de la skill. Cada caso de uso se verifica con una cita del mismo.
Cómo instalar la skill docker-agent-deploy
Cada comando copia la carpeta de la skill al directorio de skills del cliente. Reinicia el cliente o inicia una nueva sesión para cargarla.Instalar la skill docker-agent-deploy en Plugin
/plugin marketplace add docker/skills /plugin install docker-skills@docker
Instalar la skill docker-agent-deploy en Claude Code
~/.claude/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.claude/skills/docker-agent-deployInstalar la skill docker-agent-deploy en Claude Code (project)
.claude/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy .claude/skills/docker-agent-deployInstalar la skill docker-agent-deploy en Codex
~/.agents/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.agents/skills/docker-agent-deployInstalar la skill docker-agent-deploy en Gemini CLI
~/.gemini/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.gemini/skills/docker-agent-deployInstalar la skill docker-agent-deploy en Claude.ai
npx degit docker/skills/skills/docker-agent-deploy docker-agent-deploy && zip -r docker-agent-deploy.zip docker-agent-deploy # claude.ai → Customize → Skills → + → Create skill → Upload a skill → docker-agent-deploy.zip
Verificaciones automáticas
Ejecutado 15 nov 2026Informe completo →Superó nuestras comprobaciones automáticas. No es una auditoría de seguridad: lee los scripts antes de dejar que un agente los ejecute. Cómo funcionan las verificaciones
- Repositorio de origen vinculado y accesibledocker/skills/skills/docker-agent-deploy is public and reachablegithub.com/docker/skills/tree/HEAD/skills/docker-agent-deplo ↗Aprobado
- Licencia de código abierto (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗Aprobado
- Commit o lanzamiento en el último añoLast commit 2026-11-10github.com/docker/skills/commits ↗Aprobado
- Sin descargar y ejecutar ni robo de credenciales en los scriptsNo scripts in the skill folderAprobado
- Sin instrucciones ocultas en SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/docker/skills/blob/HEAD/skills/docker-agent-deplo ↗Aprobado
- Las herramientas preaprobadas están acotadasNo pre-approved tools; the agent asks before using onegithub.com/docker/skills/blob/HEAD/skills/docker-agent-deplo ↗Aprobado
- SKILL.md sigue el formato de Agent SkillsValid name and description; says when to use it; 134 linesgithub.com/docker/skills/blob/HEAD/skills/docker-agent-deplo ↗Aprobado
SKILL.md
Ver en GitHubDocker Agent: Serving, Sharing, and Evaluating
Overview
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.
When to use this skill
Activate this skill when:
- The user wants an agent reachable over MCP, an OpenAI-compatible chat endpoint, a plain HTTP API, or A2A/ACP.
- The user wants to publish an agent to Docker Hub (or any OCI registry) or pull one someone else published.
- The user wants automated evaluations (regression tests) for an agent, or wants to gate CI on eval results.
Do not use this skill when
Do not use this skill when:
- The task is authoring the agent.yaml itself (models, toolsets, sub_agents) — use
docker-agent-config. - The task is running the agent interactively on a developer's machine, choosing
--safety/--sandbox, or aliases — usedocker-agent-run.
Core guidance
Serving an agent
-
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 mcp127.0.0.1:8081--auth-token(only with--http)Yes (only with --http)serve api127.0.0.1:8080--auth-tokenNo serve chat127.0.0.1:8083--api-key/--api-key-envYes serve a2a127.0.0.1:8082--auth-tokenYes serve acp(stdio only) n/a No docker agent serve mcp ./agent.yaml --http --listen 127.0.0.1:9090 --auth-token "$TOKEN" -
serve mcpdefaults to stdio transport (for local clients like Claude Desktop); pass--httponly when you need a network-reachable MCP endpoint, and set--auth-tokenwhenever you do. -
Binding any server flag to a non-loopback address without an auth token/key is refused;
--insecure-no-authexists to force it and must be treated as a deliberate, documented exception, never a default. -
serve mcp(with--http),serve chat, andserve a2aexpose--safety(strict/balanced/restricted/autonomous); Docker's docs state it defaults torestrictedfor these modes when unset.serve apiandserve acpexpose no--safetyflag at all. Never raise--safetytoautonomouson a network-reachable listener; if a served agent must approve more, preferbalancedand keep auth enabled. -
serve apiaccepts a directory instead of a single file: every.yaml/.yml/.hclin it is exposed under/api/agents. Use--session-workingdir-rootto confine session working directories when the server is reachable by more than one user.
Sharing agents via OCI registries
- Push and pull agent configs the same way you push and pull images — same
registry, same
docker loginauth:docker agent share push ./agent.yaml docker.io/username/my-agent:latest docker agent share pull docker.io/username/my-agent:latest instruction_filecontents are inlined into the pushed artifact automatically, so a published agent stays self-contained — you do not need to bundle the referenced files separately.- Pin
sub_agentsthat 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. - Use
--forceonshare pullonly when you intend to overwrite a local copy that already exists; without it, an existing local config is left untouched.
Evaluating agents
- Evals live in an
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 anevalsobject with the scoring criteria. - Create eval sessions from real conversations rather than hand-writing
JSON: run the agent interactively, then use the
/evalslash command in the TUI to save the session, and edit inrelevance/size/assertionscriteria afterward. - Four scoring dimensions: Tool Calls (F1 against the recorded sequence),
Relevance (LLM-judge,
--judge-model, defaultanthropic/claude-opus-5), Size (S/M/L/XL response-length bucket), and Assertions (deterministic checks; see the complete assertion-type list inreferences/eval-format.md). Prefer assertions overrelevancewhen a check can be exact: they need no judge model and are deterministic, not approximation-prone. - Evaluations run inside containers for isolation; a Docker-compatible
runtime is required. Dedicated provider API keys
(
ANTHROPIC_API_KEY/OPENAI_API_KEY) are forwarded automatically.GITHUB_TOKEN/GH_TOKENare not forwarded automatically (they're broad host credentials, not model keys) — pass them explicitly with-e GITHUB_TOKENwhen an agent's provider needs one (e.g.github-copilot). - Gate CI on regressions, not on absolute scores, with
--baseline:
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. andocker agent eval ./agent.yaml --baseline results/2026-08-01-run.json --regression-tolerance 0.05--onlypattern matching nothing) is rejected rather than reported as passing. - Use
--keep-containersplus your runtime'sexecto inspect a failed eval's container; the eval's.dbsession file holds the full conversation for offline debugging.
Verify
- After changing a served agent's config, re-run its evals with the same
explicit
--safetyvalue 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.
Related skills
- For writing or changing the underlying
agent.yaml, usedocker-agent-config. - For local/interactive runs, safety-mode choice, and sandboxing, use
docker-agent-run.
References
references/eval-format.md— full eval session JSON schema and CLI flag table.references/sources.md— provenance of every rule in this skill.
Assets
assets/eval-session-example.json— a minimal eval session file to copy and adapt.
Checks
checks/verification.md— Verification runbook for serving, sharing, and evaluating an agent.
Archivos de esta skill
7Preguntas sobre la skill docker-agent-deploy
¿Cómo instalo la skill docker-agent-deploy en Claude Code?
Ejecuta npx degit docker/skills/skills/docker-agent-deploy ~/.claude/skills/docker-agent-deploy. Claude Code carga las skills desde ~/.claude/skills (todos los proyectos) o .claude/skills (un proyecto) y usa una skill cuando su descripción coincide con la tarea.
¿Qué clientes pueden usar la skill docker-agent-deploy?
Cualquier cliente que lea el formato Agent Skills: Claude Code, Codex, Gemini CLI y claude.ai (subir como ZIP). Los scripts de la skill se ejecutan solo donde el cliente permite la ejecución de código.
¿Cómo puedo hacer que mi Docker Agent sea accesible como un MCP server?
Puedes usar el comando serve mcp. Para clientes locales como Claude Desktop, utiliza por defecto el transporte stdio, pero puedes pasar la bandera --http para crear un endpoint accesible por red.
¿Cómo distribuyo mi agente a otras personas?
Puedes hacer push y pull de configuraciones de agentes a través de un registro OCI usando los comandos docker agent share push y docker agent share pull, de forma similar a como gestionas las imágenes de contenedores.
¿Cómo puedo evitar regresiones en el rendimiento de mi agente?
Usa el comando docker agent eval con la bandera --baseline para condicionar tu CI a la detección de regresiones en lugar de basarte solo en puntuaciones absolutas.