Add Claude Code container management scripts
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.
This commit is contained in:
commit
a9a645abca
6 changed files with 284 additions and 0 deletions
14
force-cleanup.sh
Executable file
14
force-cleanup.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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."
|
||||
Loading…
Add table
Add a link
Reference in a new issue