claude-code
Claude Code Overview
Secure your stack with a hardened Claude Code image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
Claude Code is Anthropic's agentic coding tool that runs in your terminal, reads and edits your codebase, and handles routine development tasks through natural-language commands. It's a prebuilt, hardened alternative to Anthropic's reference devcontainer, which is a Dockerfile you build yourself on a Debian/node:20 base (EOL as of April 2026) assembled by a devcontainer-aware editor.
Try It Out
For a quick test, print the version information:
docker run --rm reg.mini.dev/claude-code --versionMount a project
To run Claude Code against a project, mount the project directory to /workspace (the default command is claude, started in /workspace):
docker run -it --rm \
-v "$PWD":/workspace \
-v claude-code-config:/home/node/.claude \
-v claude-code-bashhistory:/commandhistory \
reg.mini.dev/claude-codeThe claude-code-config volume persists login, settings, and session history across runs, and claude-code-bashhistory persists shell history. Past conversations are keyed to the project path, so mount the same directory at /workspace to --resume them later. For API-key auth instead of the browser sign-in flow, add -e ANTHROPIC_API_KEY=....
First Login & Staying Logged In
- On the first run,
claudestarts its sign-in flow and prints a URL — open it in your host browser and authenticate with your claude.ai account. - The browser's localhost callback cannot reach into the container, so after authenticating, the claude.ai page shows a code — copy it and paste it at the
Paste code here if promptedprompt in the terminal. - The token and all settings land in the
claude-code-configvolume, so every later run mounting that volume starts already signed in.
Egress Firewall (Optional)
The image bundles the reference devcontainer's default-deny egress firewall, allowlisting only Anthropic, GitHub, npm, Sentry, and VS Code marketplace endpoints. It's opt-in, and needs both network capabilities to configure iptables:
docker run -it --rm \
--cap-add NET_ADMIN --cap-add NET_RAW \
-e CLAUDE_CODE_FIREWALL=true \
-v "$PWD":/workspace \
-v claude-code-config:/home/node/.claude \
reg.mini.dev/claude-codeA firewall failure aborts the container rather than starting unprotected (fail-closed).
Autonomous Runs (--dangerously-skip-permissions)
Run Claude Code without pausing for approval on each step using the --dangerously-skip-permissions flag . Pair it with the firewall above to further limit the blast radius. Inside the container there are no SSH keys, cloud credentials, browser data, or other repositories to reach, only the directory you mount:
docker run -it --rm \
--cap-add NET_ADMIN --cap-add NET_RAW \
-e CLAUDE_CODE_FIREWALL=true \
-v "$PWD":/workspace \
-v claude-code-config:/home/node/.claude \
reg.mini.dev/claude-code claude --dangerously-skip-permissionsNever mount /var/run/docker.sock into this container — that grants host root.
Other Commands
Any other command passes straight through the entrypoint, so the image also works as a dev shell or to check a bundled tool's version.
For example, check the node version:
docker run --rm reg.mini.dev/claude-code node --versionTechnical Considerations
The Claude Code image provided by Minimus is a slim, security-hardened alternative to the official reference devcontainer published by Anthropic. The images are functionally interchangeable, with a few differences as noted below.
Claude Code built by Minimus:
- This is a prebuilt registry image based on the Dockerfile distributed by Anthropic as a reference devcontainer for building on a Debian/node:20 base, assembled by a devcontainer-aware editor.
- Ships on a current, non-EOL Node.js runtime rather than the reference container's Node 20/Debian bookworm base, which is EOL as of April 2026. This substantially reduces the base image's CVE surface.
- Installs the Claude Code CLI as a GPG-verified, package-managed binary rather than through
npm, so CLI updates track image updates automatically. - Carries a one-line fix to the reference's egress-firewall script so a single domain's DNS failure skips that domain instead of aborting the whole firewall.
- Drill down on the version specification tab to see the default user, entrypoint, volumes, and environment variables.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.