Docker Agentをサーバーとして公開し、OCI registry経由で配布、さらに自動化された品質評価を実行します。
- GitHubスター
- 626
- ファイル
- 7
- 最終コミット
- 2026年11月10日
- ライセンス
- Apache-2.0
- 許可されたツール
- —
docker-agent-deploy skillは何をしますか
docker-agent-deployはAgent Skillsです。 Docker Agentをサーバーとして公開し、OCI registry経由で配布、さらに自動化された品質評価を実行します。.
skillのSKILL.mdから生成された要約。
docker-agent-deploy skill について
このSKILLは、Docker Agentをネットワーク経由でアクセス可能なサーバーとして公開し、OCI registryを通じて配布し、そのパフォーマンスを測定することを可能にします。ローカルでの実行を超えて、MCP、HTTP API、OpenAI互換チャット、またはA2AおよびACPプロトコル経由でエージェントを利用可能にしたい開発者向けに設計されています。docker agent serveコマンドを使用することで、特定の認証トークンと安全性レベルを指定してエージェントをホストし、安全なネットワークアクセスを確保できます。
デプロイメントに加え、このSKILLはdocker agent shareコマンドによるエージェントの配布を容易にし、Docker Hubなどのレジストリに対してエージェントの設定をプッシュまたはプルできます。品質保証については、docker agent evalコマンドが隔離されたコンテナ内で自動評価を実行します。このプロセスでは、ツール呼び出しのF1スコア、関連性、決定論的なアサーションなどのスコアリングメトリクスを使用して、エージェントの動作を検証します。また、新しい結果をベースラインと比較することで、アップデートによってパフォーマンスが低下しないことを確認する回帰テストをCIパイプラインに組み込むことも可能です。
エージェントができること
- 1エージェントをMCP serverとして公開ローカルのエージェント設定を、Claude Desktopで使用可能なネットワーク経由のMCPエンドポイントに変換します。
- 2OCI registry経由でエージェントを配布エージェントの設定をDocker Hubに公開し、他のユーザーが簡単にプルして利用できるようにします。
- 3エージェントの品質テストを自動化変更をデプロイする前に、自動評価を実行してツール呼び出しや関連性の退行がないかを確認します。
- 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月15日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。エージェントに実行させる前にスクリプトを読んでください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能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 が Agent Skills の形式に従っているValid name and description; says when to use it; 134 linesgithub.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経由でエージェントの設定をプッシュまたはプルできます。
エージェントのパフォーマンスの退行(リグレッション)を防ぐにはどうすればよいですか?
docker agent evalコマンドに--baselineフラグを付けて使用することで、絶対的なスコアではなく、ベースラインとの比較によってCIで退行を検知できます。