
deepworks/claude-codeA self-contained Docker setup for running Anthropic's Claude Code with your repository, featuring FCM-compliant architecture and Max plan support.
Claude Code is an agentic coding tool developed by Anthropic 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 Anthropic's Max plan:
Download this repository into your project:
bashcurl -L [***] -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 ***:deepworks-net/docker.claude-code.git claude-docker # Or using HTTPS git submodule add [***] 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 Prompts |
|---|---|---|
| Max (5x Pro/$100) | ~225 messages / 5 hrs | ~50-200 prompts / 5 hrs |
| Max (20x Pro/$200) | ~900 messages / 5 hrs | ~200-800 prompts / 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 Anthropic 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





探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务