Automated Docker garbage collection for images, containers, volumes
848
Automated Docker garbage collection — clean up unused images, containers, and volumes.
docker run -v /var/run/docker.sock:/var/run/docker.sock ogulcanaydogan/docker-gc
| Variable | Description | Default |
|---|---|---|
GRACE_PERIOD_HOURS | Keep images newer than this | 24 |
DRY_RUN | Preview without deleting | false |
CLEAN_IMAGES | Remove unused images | true |
CLEAN_CONTAINERS | Remove stopped containers | true |
CLEAN_VOLUMES | Remove unused volumes | false |
SCHEDULE | Cron schedule (e.g., 0 3 * * *) | - |
MIT
Content type
Image
Digest
sha256:d7e39dd9a…
Size
60.5 MB
Last updated
8 months ago
docker pull ogulcanaydogan/docker-gc