Common issues and solutions for claudetainer.
# Run comprehensive health check
claudetainer doctor
# Check prerequisites
claudetainer prereqs
# List running containers
claudetainer listSymptoms: claudetainer up fails or hangs
Solutions:
# Check if devcontainer CLI is installed
devcontainer --version
# Ensure Docker is running
docker ps
# Force clean start
claudetainer rm -f && claudetainer upCommon causes:
- Docker not running
- DevContainer CLI not installed (
npm install -g @devcontainers/cli) - Port conflicts (try
claudetainer rm -ffirst)
Symptoms: claudetainer ssh fails or times out
Solutions:
# Check if container is running
claudetainer up
# Verify port forwarding
nc -z localhost 2223
# Check container status
claudetainer listCommon causes:
- Container not running (
claudetainer up) - Port 2223 in use by another process
- SSH daemon not started in container
Symptoms: Claude Code hooks fail with linting errors
Solutions:
# Check what tools are available
which black flake8 autopep8
# Test quality control via sub-agents
# Use /check command in Claude Code to trigger quality agentsCommon causes:
- Language tools not installed in container
- File permissions issues
- Malformed code that can't be auto-fixed
When all else fails:
# Remove everything and start fresh
claudetainer rm -f --config
claudetainer init
claudetainer upThis removes:
- All containers for the project
.devcontainerdirectory- Forces complete regeneration
Symptoms: Slow container startup or response
Solutions:
- Increase Docker memory allocation (Docker Desktop settings)
- Check available disk space
- Restart Docker Desktop
- Use local SSD storage for project files
Symptoms: Can't connect to container or download images
Solutions:
- Check corporate firewall settings
- Verify Docker can pull images:
docker pull mcr.microsoft.com/devcontainers/base:ubuntu - Configure proxy settings in Docker Desktop if needed
- M1/M2 compatibility: Use
--platform linux/amd64if container fails to start - File permissions: Ensure project directory is accessible to Docker
- Path issues: Use WSL2 file system for best performance
- Docker Desktop integration: Ensure WSL2 integration is enabled
- Docker permissions: Add user to docker group:
sudo usermod -aG docker $USER - systemd: Ensure Docker service is running:
sudo systemctl start docker
- Run diagnostics:
claudetainer doctor - Check logs:
docker logs <container-id> - Report issues: GitHub Issues
- Include output of:
claudetainer doctorandclaudetainer list