
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
[!NOTE] Experimental: Sandbox Kit v3
This kit uses the experimental https://github.com/docker/sandbox-kit-spec, specifically https://github.com/docker/sandbox-kit-spec/blob/main/docs/spec/SPEC-v3.md. The format and runtime behavior may change before v3 is stable.
Run the Codex ACP adapter inside a Docker Sandbox.
This is a kind: mixin kit (schemaVersion: "3") that requires: ["codex"],
so it composes onto any kit providing that name — the codex
workload kit or the codex-mixin overlay. It adds
/home/agent/.local/bin/codex-acp, a small launcher that runs
@agentclientprotocol/codex-acp with CODEX_PATH=codex.
The kit ships no layers of its own: the launcher is written by a lifecycle
files entry at sandbox start and resolves the adapter through npx when it
runs, which is why registry.npmjs.org is in the kit's runtime allow list
rather than only needed at build time.
codex-acp inherits OpenAI authentication from whichever kit provides codex
in the composition — it declares no credential of its own. Seed OpenAI auth with
sbx before creating the sandbox so the non-interactive ACP adapter can start
authenticated.
For *** OAuth:
consolesbx secret set -g openai --oauth
For an OpenAI API key:
consoleecho "$OPENAI_API_KEY" | sbx secret set -g openai
You can also import a detected host environment variable:
consolesbx secret import openai
The Codex ACP adapter does not advertise a terminal-auth command. Keep provider
credentials in the sbx credential store rather than passing API keys through
sbx exec argv or ad-hoc environment variables. If you add OpenAI auth after a
sandbox has already been created, recreate the sandbox so the codex-providing
kit can refresh its Codex auth files.
Create a sandbox from its published OCI artifact on Docker Hub:
consolesbx create --kit "docker.io/docker/sbx-kit-codex-acp:latest" --name my-task codex /path/to/task
Or from a git URL targeting this repo:
consolesbx create --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=codex-acp" --name my-task codex /path/to/task
Run the adapter over stdio:
consolesbx exec -i my-task /home/agent/.local/bin/codex-acp
Do not allocate a TTY for ACP sessions; the adapter expects newline-delimited JSON-RPC on stdin/stdout.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务