Last active
January 14, 2026 09:48
-
-
Save megahertz/5d213f5e5ba4d4de7a95494621d8e734 to your computer and use it in GitHub Desktop.
There's a `docker sandbox run claude` command, but it requires Docker Desktop to be installed, which is pretty undesirable on Linux since it replaces Docker Engine with a VM environment. This simple script does similar things.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| docker run --init -it --rm \ | |
| -v "$(pwd):$(pwd)" -w "$(pwd)" \ | |
| -v "$HOME/.claude:/home/agent/.claude" \ | |
| -v "$HOME/.claude.json:/home/agent/.claude.json" \ | |
| -e GIT_AUTHOR_NAME="$(git config user.name)" \ | |
| -e GIT_AUTHOR_EMAIL="$(git config user.email)" \ | |
| -e TERM=xterm-256color \ | |
| -e COLORTERM=truecolor \ | |
| docker/sandbox-templates:claude-code "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment