by nezhar
Container workflow for Claude Code. Complete isolation from host system while maintaining persistent credentials and workspace access.
# Add to your Claude Code skills
git clone https://github.com/nezhar/claude-containerA Docker container with Claude Code pre-installed and ready to use.
This container includes all necessary dependencies and provides an easy way to run Claude Code in an isolated environment.
An optional proxy can be enabled to track all the requests made by Claude Code in a local SQLite database.
Three Docker images are available on Docker Hub, all released with matching version tags:
| Image | Purpose | Base | |-------|---------|------| | nezhar/claude-container | Main container with Claude Code CLI pre-installed | Node.js 22 Alpine | | nezhar/claude-proxy | Optional HTTP proxy that logs all API requests to SQLite | Python 3.12 Alpine | | nezhar/claude-datasette | Optional web UI for visualizing and querying logged requests | Datasette + plugins |
When using all three images together, the request flow looks like this:
┌─────────────────┐ ┌──────────────────┐ ┌─────────────────────┐
│ claude-container│─────▶│ claude-proxy │─────▶│ api.anthropic.com │
│ (Claude Code) │ │ (HTTP Proxy) │ │ (Anthropic API) │
└─────────────────┘ └────────┬─────────┘ └─────────────────────┘
│
▼
┌─────────────────┐
│ requests.db │
│ (SQLite) │
└────────┬────────┘
│
▼
┌─────────────────┐
│claude-datasette │
│ (Web UI) │
└─────────────────┘
http://localhost:8001
Standalone Usage:
Latest Release: 1.6.5 (Claude Code 2.1.34)
| Container Version | Claude Code Version | |-------------------|---------------------| | 1.0.x | 1.0.x | | 1.1.x | 2.0.x | | 1.2.x | 2.0.x | | 1.3.x | 2.0.x | | 1.4.x | 2.0.x | | 1.5.x | 2.1.x | | 1.6.x | 2.1.x |
The easiest way to run Claude Container is using the provided bash script. Download and install it with:
# Download the script directly from GitHub
curl -o ~/.local/bin/claude-container https://raw.githubusercontent.com/nezhar/claude-container/main/bin/claude-container
# Make it executable
chmod +x ~/.local/bin/claude-cont...