Running Claude Code in a Sandboxed Docker Container

If you've ever wanted to run Claude Code with full permissions, without worrying about it touching anything outside your project. This one-liner install script does exactly that.

The script builds a minimal Docker image (node:22-slim) with Claude Code and the rtk CLI pre-installed, then wires up two shell aliases:

claude-docker — launches Claude Code inside the container with --dangerously-skip-permissions, your current directory mounted at /workspace

claude-docker-sh — drops you into a bash shell in the same container, useful for poking around or debugging