Scripts to run Claude Code inside an Arch Linux Docker container that mirrors the local development environment while limiting access to sensitive host files. Includes per-project container isolation, a shared persistent home directory, and a shell alias for launching Claude interactively from any project directory.
14 lines
384 B
Bash
Executable file
14 lines
384 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# Stop and remove all claude-container containers
|
|
docker ps -a --filter "name=cc-" --format "{{.Names}}" | xargs -r docker rm -f
|
|
|
|
# Remove the image
|
|
docker rmi claude-container:latest 2>/dev/null || true
|
|
|
|
# Remove the persistent home directory
|
|
XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
|
|
rm -rf "$XDG_DATA_HOME/claude-container"
|
|
|
|
echo "Cleanup complete."
|