Created
March 3, 2026 18:42
-
-
Save bogovicj/4a3afced85fd83fb73a1e08f95f977bb to your computer and use it in GitHub Desktop.
Runs the 'claude-dev' docker image for claude, mounting a set of volumes into the container. Folders are mounted into the /workspace folder.
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
| #!/bin/bash | |
| # | |
| # Runs the 'claude-dev' docker image for claude, mounting a set of volumes | |
| # into the container. Folders are mounted into the /workspace folder. | |
| # | |
| # All arguments are mounted. If no arguments are provided, the current working directory is mounted. | |
| args="" | |
| if [ $# -eq 0 ] | |
| then | |
| args="." | |
| else | |
| args=$@ | |
| fi | |
| volumes="" | |
| for path in $args; | |
| do | |
| normPath=$(readlink -f $path) | |
| name=${normPath##*/} | |
| volumes="${volumes} -v $normPath:/workspace/${name}" | |
| done | |
| echo $volumes | |
| docker run \ | |
| -v ~/.claude:/home/node/.claude \ | |
| -v ~/.claude.json:/home/node/.claude.json \ | |
| $volumes \ | |
| -i -t claude-dev /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment