Stats
Actions
Tags
How this command is triggered — by the user, by Claude, or both
Slash command
/dockhand:dh-cleanup [host] [--dry-run]This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Docker Cleanup Clean unused Docker resources to reclaim disk space. ## Usage ## Cleanup Sequence 1. **Check current usage:** 2. **Preview cleanup (dry-run):** 3. **Execute cleanup:** 4. **Verify results:** ## What Gets Cleaned - Stopped containers - Unused networks - Dangling images - Build cache ## What's Preserved - Running containers - Named volumes (data) - Images in use
Clean unused Docker resources to reclaim disk space.
/dh:cleanup # All hosts
/dh:cleanup platform-core
/dh:cleanup prod
/dh:cleanup --dry-run # Preview only
Check current usage:
check_resource_thresholds
docker_state host="<host>"
Preview cleanup (dry-run):
ssh_exec "docker system df" host="<host>"
Execute cleanup:
ssh_exec "docker system prune -f" host="<host>"
ssh_exec "docker image prune -a --filter 'until=168h' -f" host="<host>"
Verify results:
check_resource_thresholds
npx claudepluginhub masonjames/dockhand-plugin/dockcleanbuildCleans Docker environment by pruning build cache, removing stale images and project containers (preserving volumes), then rebuilds all images from scratch with no cache and brings containers back up.
/docker-healthChecks health of all Docker containers, analyzing states, resource usage, and recent issues. Produces a summary of environment health and recommended actions.