claude-docker lets you run Claude Code with full permissions inside a safe container
A developer has released claude-docker, a one-liner install script that runs Anthropic's Claude Code inside a minimal Docker container using a node:22-slim base image. The setup enables Claude Code's full-permissions mode with the --dangerously-skip-permissions flag while limiting its filesystem access to the user's project directory and a dedicated config path. The script adds two shell aliases — claude-docker and claude-docker-sh — to the user's shell configuration file, requiring no separate binaries or PATH modifications. A non-root user is created inside the container to further reduce risk, and separate install scripts are available for both bash and zsh. The project is published as a public GitHub Gist, and Docker must be installed and running before the script can be used.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in