From sandboxxer
Use when user encounters problems with Claude Code Docker sandbox - diagnose and fix container startup failures, network issues, service connectivity, firewall blocking, or permission errors
How this skill is triggered — by the user, by Claude, or both
Slash command
/sandboxxer:sandboxxer-troubleshootThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Diagnoses and resolves common issues with Claude Code Docker sandbox environments using systematic troubleshooting workflows.
Diagnoses and resolves common issues with Claude Code Docker sandbox environments using systematic troubleshooting workflows.
Use this skill when:
Do NOT use this skill when:
/sandboxxer:quickstart instead)/sandboxxer:audit instead)/sandboxxer:linux-troubleshoot instead)Via slash command:
/sandboxxer:troubleshoot
Via natural language:
User: "My sandbox container won't start"
Assistant: "I'll help troubleshoot your container startup issue."
The skill will:
docker logs <container>User: "I can't connect to my database service"
Assistant: "Let's diagnose the connectivity issue."
The skill will:
docker ps)Ask user to describe the issue, then categorize:
Run appropriate diagnostic commands:
Container Issues:
docker ps -a
docker compose ps
docker compose logs
docker system df
Network Issues:
# Inside container
nslookup google.com
curl https://api.github.com/zen
sudo iptables -L OUTPUT -v -n
echo $FIREWALL_MODE
Service Connectivity:
docker compose ps
nc -zv postgres 5432
nc -zv redis 6379
docker inspect <container-name> | grep Networks -A 5
Based on the diagnostic results, apply fixes from the reference documentation (docs/features/TROUBLESHOOTING.md).
docker psdocker compose down && docker compose up -ddocker system dfecho $FIREWALL_MODEinit-firewall.shsudo /usr/local/bin/init-firewall.shdocker compose psdocker compose logs <service-name>ALLOWED_DOMAINS in .devcontainer/init-firewall.shpypi.org, files.pythonhosted.orgregistry.npmjs.orgcrates.ioAfter applying fixes, verify:
Provide verification commands:
# Check container status
docker ps
# Check services
docker compose ps
# Test connectivity (inside container)
curl https://api.github.com/zen
psql <connection-string> -c "SELECT 1"
redis-cli -h redis ping
Cause: Docker not running Fix: Start Docker Desktop or Docker daemon
Cause: docker-compose services not started first
Fix: docker compose up -d before opening DevContainer
Cause: File ownership mismatch
Fix: sudo chown -R 1000:1000 /path/to/project from host
Cause: Firewall blocking package registries Fix: Temporarily use permissive mode or whitelist domains
Cause: Health check command incorrect or service not ready Fix: Verify health check matches service config, increase timeout
Cause: Using localhost instead of service name
Fix: Use postgres or redis as hostname
If nothing works, provide nuclear option:
# Stop and remove everything
docker compose down -v
# Clean DevContainer (from VS Code)
# Ctrl+Shift+P → "Dev Containers: Clean Up Dev Containers"
# Prune Docker system
docker system prune -a --volumes
# Start fresh
docker compose up -d
# Ctrl+Shift+P → "Dev Containers: Rebuild Container Without Cache"
Warning: This deletes all data. Back up important information first.
For detailed troubleshooting steps, refer to docs/features/TROUBLESHOOTING.md which contains comprehensive solutions for all common issues.
User reports container won't start:
User: My container won't build. It says "ERROR: failed to solve"
Assistant: I'll help troubleshoot this build failure.
/sandboxxer:troubleshoot
The skill guides through checking Docker logs, Dockerfile syntax, network connectivity during build, and provides specific fix for the identified issue.
User can't connect to PostgreSQL:
User: My app can't connect to PostgreSQL. Connection refused on port 5432.
Assistant: I'll diagnose this database connectivity issue.
/sandboxxer:troubleshoot
The skill checks if PostgreSQL service is running, verifies port mappings, tests connectivity from container, and ensures connection string is correct.
User's API calls are being blocked:
User: I'm getting network errors when calling the OpenAI API. It works outside the container.
Assistant: This sounds like a firewall configuration issue. Let me troubleshoot.
/sandboxxer:troubleshoot
The skill checks firewall mode, reviews allowed domains list, tests connectivity to specific domain, and provides guidance on adding OpenAI domains to allowlist.
npx claudepluginhub andrewcchoi/sandbox-maxxing --plugin sandboxxerDiagnoses Docker container failures, networking issues, permissions errors, port conflicts, data persistence problems, and health checks using docker compose logs, inspect, and targeted fixes.
Debug container agent issues including failures, authentication problems, and sandbox runtime behavior. Covers logs, environment variables, mounts, and common fixes.
Guides Docker usage: debugging container failures, writing Dockerfiles, docker-compose for integration tests, image optimization, volumes, multi-stage builds, and deployments.