Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub masonjames/dockhand-pluginHow 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
/disk-auditAnalyzes disk usage and previews cleanup targets. Also supports --clean for interactive deletion and --clean-all for aggressive Docker prune.
/dockcleanbuildCleans Docker environment and rebuilds project: prunes build cache/images, stops/removes containers (preserves volumes), rebuilds images no-cache, restarts services.
/docker-healthChecks health of all Docker containers and services: displays status/resource usage, analyzes issues (exited/restarting/high CPU/memory), provides recommendations/summary.
Share bugs, ideas, or general feedback.
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