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

https://news.ycombinator.com/rss Hits: 1
Summary

Claude Code Container A Docker container for running Claude Code in "dangerously skip permissions" mode. claude-container3.mp4 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 Basic Claude Code container without any MCP servers configured. Clean, simple setup. 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 Claude Code License: Ensure you have a valid Claude Code license OAuth Token: Set your Claude Code OAuth token Docker: Docker must be installed and running Build and Run # Clone this repository git clone < repository-url > 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 CLAUDE_CODE_OAUTH_TOKEN : Your Claude Code OAuth token (required) Run claude setup-token , login, save the resulting sk-* token. Security Features Container Security Non-root execution : Runs as user claude (UID 1001) : Runs as user (UID 1001) Capability dropping : Minimal Linux capabilities : Minimal Linux capabilities Process limits : Resource constraints for safety (max 100 PIDs) : Resource constraints for safety (max 100 PIDs) Tmpfs mounts : Isolated temporary storage for /tmp and /workspace/temp ...

First seen: 2025-08-20 04:03

Last seen: 2025-08-20 04:03