
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
A self-contained Docker setup for running ***'s Claude Code with your repository, featuring FCM-compliant architecture and Max plan support.
Claude Code is an agentic coding tool developed by *** that lives in your terminal, understands your codebase, and helps you code faster through natural language commands. By integrating directly with your development environment, Claude Code streamlines your workflow without requiring additional servers or complex setup.
This version restructures the Docker setup for maximum flexibility:
claude/ folderThis implementation fully supports ***'s Max plan:
Download this repository into your project:
bashcurl -L https://github.com/deepworks-net/docker.claude-code/archive/main.zip -o claude-docker.zip unzip claude-docker.zip mv docker.claude-code-main claude-docker rm claude-docker.zip
Build and run:
bashcd claude-docker docker-compose up -d --build
Enter the container:
bashdocker-compose exec claude-code bash
bash# Quick start - no files needed! docker run -it -v .:/home/coder/project deepworks/claude-code:latest # Or with docker-compose.yml in your project: version: '3.8' services: claude-code: image: deepworks/claude-code:latest volumes: - .:/home/coder/project:rw # Optional: Add custom config by uncommenting: # - ./claude/CLAUDE.md:/home/coder/claude/CLAUDE.md:ro environment: - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY} working_dir: /home/coder/project tty: true stdin_open: true # Run it docker-compose up -d docker-compose exec claude-code bash
bash# If using SSH git submodule add git@github.com:deepworks-net/docker.claude-code.git claude-docker # Or using HTTPS git submodule add https://github.com/deepworks-net/docker.claude-code.git claude-docker git submodule update --init --recursive
Both the download method and submodule method place the files in the same
claude-docker directory, so the Docker commands remain identical.
your-project/ ├── src/ # Your project source code ├── docs/ # Your project documentation ├── package.json # Your project dependencies ├── claude-docker/ # Claude Code Docker setup (Option 1 or 3) │ ├── Dockerfile │ ├── docker-compose.yml │ ├── startup.sh │ └── claude/ # Claude configuration folder │ ├── config/ # Claude config files │ ├── models/ # FCM pattern definitions │ └── validation/ # FCM validation tools └── docker-compose.yml # Simple compose file (Option 2)
This setup supports logging in with your Claude Max plan credentials:
/login to switch to MaxYou can also use a direct API key:
Start Claude Code inside the container:
bashclaude
If using a Max plan, log in with your Claude credentials:
bash/login
Claude Code will have access to your entire repository and can help with:
With the Max plan, your usage limits are shared across both Claude and Claude Code:
| Plan | Claude Messages | Claude Code Pro***s |
|---|---|---|
| Max (5x Pro/$100) | ~225 messages / 5 hrs | ~50-200 pro***s / 5 hrs |
| Max (20x Pro/$200) | ~900 messages / 5 hrs | ~200-800 pro***s / 5 hrs |
Note: Usage varies based on message length, complexity, file attachments, and other factors.
This setup includes FCM compliance for enhanced structural integrity:
FCM resources are available in the claude/ folder:
claude/models/ - Formal FCM pattern definitionsclaude/config/ - FCM-compliant configurationclaude/validation/ - FCM validation and tracking toolsANTHROPIC_API_KEY - Your *** API key (if not using Max plan login)CLAUDE_USE_MAX_PLAN - Set to "true" to show Max plan information on startupThe docker-compose configuration mounts:
/home/coder/project/repository/home/coder/claudeThis project is licensed under the MIT License - see the LICENSE file for details.
If you're upgrading from a previous version:
config/, models/, and validation/ folders into a new claude/ folder./claude instead of individual folders/home/coder/project/repository (your actual project)claude-docker/ directory so the compose volumes remain the same您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务