Docker Agent을 서버로 노출하고, OCI registry를 통해 배포하며, 자동화된 품질 평가를 수행합니다.
- GitHub 스타
- 626
- 파일
- 7
- 마지막 커밋
- 2026년 11월 10일
- 라이선스
- Apache-2.0
- 허용된 도구
- —
docker-agent-deploy skill은 무엇을 하나요?
docker-agent-deploy은(는) agent skill입니다. Docker Agent을 서버로 노출하고, OCI registry를 통해 배포하며, 자동화된 품질 평가를 수행합니다.
skill의 SKILL.md에서 생성된 요약입니다.
docker-agent-deploy skill 정보
Docker Agent를 네트워크 연결이 가능한 서버로 노출하고, OCI registry를 통해 배포하며, 성능을 측정할 수 있도록 지원합니다. 이 SKILL은 로컬 실행을 넘어 MCP, HTTP API, OpenAI 호환 채팅, 또는 A2A 및 ACP 프로토콜을 통해 에이전트에 접근해야 하는 개발자를 위해 설계되었습니다. docker agent serve 명령어를 사용하면 특정 인증 토큰과 안전 수준을 적용하여 에이전트를 호스팅함으로써 보안 네트워크 액세스를 보장할 수 있습니다.
배포 외에도 docker agent share 명령어를 사용하여 에이전트 배포를 용이하게 하며, Docker Hub와 같은 registry에 에이전트 설정을 푸시하거나 가져올 수 있습니다. 품질 보증을 위해 docker agent eval 명령어는 격리된 컨테이너 내부에서 자동화된 평가를 실행합니다. 이 프로세스는 tool call F1 score, 관련성, 결정론적 assertion과 같은 점수 지표를 사용하여 에이전트 동작을 검증합니다. 또한 새로운 결과를 기준점과 비교하는 회귀 테스트를 CI 파이프라인에 구현하여 업데이트로 인해 성능이 저하되지 않도록 보장할 수 있습니다.
agent가 수행할 수 있는 작업
- 1에이전트를 MCP server로 노출로컬 에이전트 설정을 Claude Desktop에서 사용할 수 있는 네트워크 연결 가능 MCP 엔드포인트로 전환합니다.
- 2OCI registry를 통한 에이전트 배포에이전트 설정을 Docker Hub에 게시하여 다른 사용자가 쉽게 가져와 사용할 수 있도록 합니다.
- 3에이전트 품질 테스트 자동화변경 사항을 배포하기 전에 tool calling 또는 관련성의 성능 저하를 확인하기 위해 자동화된 평가를 실행합니다.
- 4에이전트 안전 설정 검증에이전트 설정 변경이 요구되는 안전 승인 정책을 의도치 않게 낮추지 않는지 확인합니다.
skill의 SKILL.md를 기반으로 작성되었습니다. 모든 사용 사례는 해당 문서의 인용구와 대조 확인되었습니다.
docker-agent-deploy skill 설치 방법
각 명령은 skill 폴더를 클라이언트의 skills 디렉터리에 복사합니다. 클라이언트를 재시작하거나 새 세션을 시작하여 로드하세요.플러그인에 docker-agent-deploy skill 설치
/plugin marketplace add docker/skills /plugin install docker-skills@docker
Claude Code에 docker-agent-deploy skill 설치
~/.claude/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.claude/skills/docker-agent-deployClaude Code (project)에 docker-agent-deploy skill 설치
.claude/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy .claude/skills/docker-agent-deployCodex에 docker-agent-deploy skill 설치
~/.agents/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.agents/skills/docker-agent-deployGemini CLI에 docker-agent-deploy skill 설치
~/.gemini/skills/docker-agent-deploy/SKILL.md
$ npx degit docker/skills/skills/docker-agent-deploy ~/.gemini/skills/docker-agent-deployClaude.ai에 docker-agent-deploy skill 설치
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
자동 검사
2026년 11월 14일에 실행됨전체 보고서 →자동 검사를 통과했습니다. 보안 감사는 아닙니다. 에이전트가 실행하기 전에 스크립트를 읽어 보세요. 검사 방식
- 소스 저장소 연결 및 접근 가능docker/skills/skills/docker-agent-deploy is public and reachablegithub.com/docker/skills/tree/HEAD/skills/docker-agent-deplo ↗통과
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit 2026-11-10github.com/docker/skills/commits ↗통과
- 스크립트에 다운로드 후 실행이나 자격 증명 탈취가 없음No scripts in the skill folder통과
- SKILL.md에 숨겨진 지침 없음No override phrases, safeguard switches, credential requests or hidden charactersgithub.com/docker/skills/blob/HEAD/skills/docker-agent-deplo ↗통과
- 사전 허용 도구가 제한됨No pre-approved tools; the agent asks before using onegithub.com/docker/skills/blob/HEAD/skills/docker-agent-deplo ↗통과
SKILL.md
GitHub에서 보기Docker 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.
이 스킬의 파일
7docker-agent-deploy skill 질문
Claude Code에 docker-agent-deploy skill을 어떻게 설치하나요?
npx degit docker/skills/skills/docker-agent-deploy ~/.claude/skills/docker-agent-deploy를 실행합니다. Claude Code는 ~/.claude/skills(모든 프로젝트) 또는 .claude/skills(한 프로젝트)에서 skills를 로드하며, 설명이 작업과 일치할 때 skill을 사용합니다.
docker-agent-deploy skill을 사용할 수 있는 클라이언트는 무엇인가요?
Agent Skills 형식을 읽는 모든 클라이언트(Claude Code, Codex, Gemini CLI, claude.ai(ZIP으로 업로드))가 사용할 수 있습니다. skill 내 스크립트는 클라이언트가 코드 실행을 허용하는 경우에만 실행됩니다.
Docker Agent를 MCP server로 연결하려면 어떻게 해야 하나요?
serve mcp 명령어를 사용하면 됩니다. Claude Desktop과 같은 로컬 클라이언트의 경우 기본적으로 stdio 전송 방식을 사용하지만, --http 플래그를 전달하여 네트워크 연결이 가능한 엔드포인트를 생성할 수 있습니다.
에이전트를 다른 사람에게 배포하려면 어떻게 하나요?
컨테이너 이미지를 다루는 방식과 유사하게 docker agent share push 및 docker agent share pull 명령어를 사용하여 OCI registry를 통해 에이전트 설정을 푸시하거나 가져올 수 있습니다.
에이전트 성능의 퇴보(regression)를 방지하려면 어떻게 해야 하나요?
docker agent eval 명령어에 --baseline 플래그를 사용하여 절대 점수가 아닌 기준점 대비 성능 저하 여부를 기준으로 CI를 제어할 수 있습니다.