Agent skill

ops-docker

Safe Docker cleanup and compose stack management. Prune unused containers/images/volumes, redeploy stacks.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/ops-docker

Metadata

Additional technical details for this skill

short description
Safe Docker cleanup and stack management

SKILL.md

Docker Ops

Safe Docker management with dry-run defaults.

Commands

bash
# Prune unused resources (dry-run by default)
./scripts/prune.sh

# Actually prune
./scripts/prune.sh --execute

# Prune images older than 24h
./scripts/prune.sh --until 24h --execute

# Redeploy compose stack (dry-run)
./scripts/redeploy.sh --stack docker-compose.yml

# Actually redeploy
./scripts/redeploy.sh --stack docker-compose.yml --execute

# Redeploy specific service
./scripts/redeploy.sh --stack docker-compose.yml --service web --execute

Environment Variables

Variable Default Description
DOCKER_PRUNE_UNTIL - Default age filter for prune
STACK_FILE docker-compose.yml Default compose file
HEALTH_CMD - Command to run after redeploy

Didn't find tool you were looking for?

Be as detailed as possible for better results