Skip to content

Instantly share code, notes, and snippets.

@bogovicj
Created March 3, 2026 18:42
Show Gist options
  • Select an option

  • Save bogovicj/4a3afced85fd83fb73a1e08f95f977bb to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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