gendosu
MCP Servergendosupublic

claude code docker

用于运行 Claude Code 的 Docker 容器镜像,支持多平台。

Repository Info

8
Stars
0
Forks
8
Watchers
0
Issues
Dockerfile
Language
-
License

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

  1. Set environment variables:
GITHUB_TOKEN=your_github_token
GITHUB_ID=your_github_id
  1. 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 command
  • args:
    • -w: Specify the working directory
    • -v: Specify volume mount between host and container
    • mcp 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

1

Clone the repository

git clone https://github.com/gendosu/claude-code-docker
2

Install dependencies

cd claude-code-docker
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownergendosu
Repoclaude-code-docker
LanguageDockerfile
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation