Maintenance in progress: we are indexing a large batch of new skills. Some pages may load slowly or briefly show no results. Nothing is lost, and everything is back to normal within the hour.

Ops Docker

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

majiayu000 521a730 2 files · 1.8 KB Updated 567 repo stars

File contents

Docker Ops

Safe Docker management with dry-run defaults.

Commands

# 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

majiayu000/claude-skill-registry-data/tree/main/data/ops-docker commit 521a730dff

Frequently asked questions

npx skillmds add majiayu000/ops-docker