Claude Code Container banner
tintinweb tintinweb

Claude Code Container

DevOps community intermediate

Description

A Docker container for running Claude Code in "dangerously skip permissions" mode.

Installation

Terminal
claude install-skill https://github.com/tintinweb/claude-code-container

README

Claude Code Container

A Docker container for running Claude Code in "dangerously skip permissions" mode.

https://github.com/user-attachments/assets/81c731d9-caeb-48cf-aa3e-65a48c55519e

Build the docker container and execute `run_claude.sh` to run an isolated version of claude code with access to the current working dir (`readOnly:/workspace/input`).

/workspace/
├── input/              # Host input files (read-only mount of $PWD)
├── output/             # Analysis results (writable mount to host)
├── data/               # Reference data (optional read-only mount)
├── temp/               # Temporary files (tmpfs mount)
├── .claude/            # Claude Code project settings
│   └── settings.local.json
└── mcp-servers/        # MCP server installations

Variants

1. claude-standalone

Basic Claude Code container without any MCP servers configured. Clean, simple setup.

2. claude-with-mcp-example

Claude Code container with MCP servers pre-configured (e.g., Chonky Security Tools). Shows how to add MCP servers, configure them, and auto-trust their execution.

Quick Start

Prerequisites

    undefined

Build and Run

# Clone this repository
git clone 
cd claude-code-container

# For standalone version
cd claude-standalone
./build.sh
CLAUDE_CODE_OAUTH_TOKEN=sk-... ./run_claude.sh

# For MCP example version  
cd claude-with-mcp-example
./build.sh
CLAUDE_CODE_OAUTH_TOKEN=sk-... ./run_claude.sh

# Pass additional Claude options
CLAUDE_CODE_OAUTH_TOKEN=sk-... ./run_claude.sh --debug --mcp-debug

Environment Variables

    undefined

Run `claude setup-token`, login, save the resulting `sk-*` token.

Security Features

Container Security

...