
claude code docker
用于运行 Claude Code 的 Docker 容器镜像,支持多平台。
Repository Info
About This Server
用于运行 Claude Code 的 Docker 容器镜像,支持多平台。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
claude-code-docker
A Docker image for Claude Code that allows you to run Claude Code in a container environment.
Features
- Based on Node.js 22.11.0
- Pre-installed with @anthropic-ai/claude-code
- Multi-platform support (linux/amd64, linux/arm64)
Usage
Using Docker Compose
- Set environment variables:
GITHUB_TOKEN=your_github_token
GITHUB_ID=your_github_id
- Start the container:
docker compose up --build
Using Docker
docker run --rm -it \
-e GITHUB_TOKEN \
-w `pwd` \
-v `pwd`:`pwd` \
-v claude-code-docker-node-versions:/home/appuser/.nodenv/versions \
ghcr.io/gendosu/claude-code-docker:latest
Example Configuration for Claude Desktop MCP Server
Add the following configuration to your Claude Desktop config file (claude_desktop_config.json) to use the Claude Code feature:
{
"mcpServers": {
"claude-code": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"GITHUB_TOKEN",
"-w",
"/path/to/your/workspace",
"-v",
"/path/to/your/workspace:/path/to/your/workspace",
"-v",
"claude-code-docker-node-versions:/home/appuser/.nodenv/versions",
"ghcr.io/gendosu/claude-code-docker:latest",
"mcp",
"serve"
],
"env": {
"NODENV_VERSION": "22.11.0",
"GITHUB_TOKEN": "<Your GitHub Token>"
}
}
}
}
Configuration details:
command: Specify the Docker commandargs:-w: Specify the working directory-v: Specify volume mount between host and containermcp serve: Start the Claude Code MCP server
Note: This configuration is specific to Claude Desktop. VSCode requires a different configuration method.
GitHub Container Registry
This image is available on GitHub Container Registry:
docker pull ghcr.io/gendosu/claude-code-docker:latest
License
MIT
Author
gendosu
Quick Start
Clone the repository
git clone https://github.com/gendosu/claude-code-dockerInstall dependencies
cd claude-code-docker
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.