A Docker image for Claude Code that allows you to run Claude Code in a container environment.
GITHUB_TOKEN=your_github_token
GITHUB_ID=your_github_id
docker compose up --build
docker run --rm -it \
-e GITHUB_TOKEN \
-w `pwd` \
-v `pwd`:`pwd` \
-v claude-code-docker-node-versions:/home/appuser/.nodenv/versions \
gendosu/claude-code-docker:latest
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",
"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 serverNote: This configuration is specific to Claude Desktop. VSCode requires a different configuration method.
This image is available on GitHub Container Registry:
docker pull gendosu/claude-code-docker:latest
MIT
gendosu
Content type
Image
Digest
sha256:344c97f96…
Size
213.2 MB
Last updated
10 months ago
docker pull gendosu/claude-code-docker