
A 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 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 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 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务