{"id":19687210,"url":"https://github.com/trinitronx/docker-gc-plus-volumes","last_synced_at":"2025-07-11T01:34:03.846Z","repository":{"id":136205203,"uuid":"63890121","full_name":"trinitronx/docker-gc-plus-volumes","owner":"trinitronx","description":"docker-gc \u0026 docker-cleanup-volumes made easy","archived":false,"fork":false,"pushed_at":"2018-01-30T23:49:15.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-10T07:47:22.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trinitronx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-21T17:42:44.000Z","updated_at":"2020-02-02T21:53:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a4751fb-2dc0-4b5d-a923-f73604ad8538","html_url":"https://github.com/trinitronx/docker-gc-plus-volumes","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-gc-plus-volumes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-gc-plus-volumes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-gc-plus-volumes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trinitronx%2Fdocker-gc-plus-volumes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trinitronx","download_url":"https://codeload.github.com/trinitronx/docker-gc-plus-volumes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240993952,"owners_count":19890419,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T18:33:24.079Z","updated_at":"2025-02-27T07:51:24.734Z","avatar_url":"https://github.com/trinitronx.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"`dgc` - docker-gc-plus-volumes\n==============================\n\n[![Docker Pulls](https://img.shields.io/docker/pulls/trinitronx/dgc.svg)](https://hub.docker.com/r/trinitronx/dgc)\n[![Docker Stars](https://img.shields.io/docker/stars/trinitronx/dgc.svg)](https://hub.docker.com/r/trinitronx/dgc) [![](https://images.microbadger.com/badges/image/trinitronx/dgc.svg)](https://microbadger.com/images/trinitronx/dgc \"Get your own image badge on microbadger.com\")\n[![GitHub Release](https://img.shields.io/github/release/trinitronx/docker-gc-plus-volumes.svg)](https://github.com/trinitronx/docker-gc-plus-volumes/releases)\n[![Gittip](http://img.shields.io/gittip/trinitronx.svg)](https://www.gittip.com/trinitronx)\n\nThis repo is just a wrapper script \u0026 docker-compose.yml files to make docker container, image, and leftover volume cleanup easy.  Contains a couple example container \u0026 image exclude files in `etc/`.  Assumes your docker directory is `/var/lib/docker`, and that the docker daemon socket is located at `/var/run/docker.sock`.\n\nBy default, will delete **ALL** containers, images, and volumes older than 24 hours and **NOT** included in the `etc/docker-gc-exclude*` files.  The `docker-gc` and `docker-cleanup-volumes` containers \u0026 images are also deleted after run.\n\nUsage\n=====\n\nThe wrapper script only accepts a single argument:\n\n - **`--dry-run`**: Run both `docker-gc` and `docker-cleanup-volumes` in _**DRY RUN**_ mode.  Does not actually delete anything.\n - When run **WITHOUT** `--dry-run`, deletion occurs.\n\n## Docker\n\nTo run the prebuilt Docker container:\n\n    docker run  --rm -v /var/lib/docker:/var/lib/docker \\\n                     -v /var/run/docker.sock:/var/run/docker.sock \\\n                     -v $(pwd)/etc:/etc \\\n                trinitronx/dgc [--dry-run]\n\nBuild\n=====\n\nTo build this docker image:\n\n    docker build -t trinitronx/dgc .\n\nLicense\n=======\n\n[GNU GPL v3](http://choosealicense.com/licenses/gpl-3.0/)\n\nSee LICENSE.md for full text\n\nCopyright\n=========\n\nCopyright James Cuzella 2014-2016 ([@trinitronx][keybase-id])\n\nAuthor\n======\n\nAuthor:: James Cuzella ([@trinitronx][keybase-id])\n\n\n[keybase-id]: https://gist.github.com/trinitronx/aee110cbdf55e67185dc44272784e694\n ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Fdocker-gc-plus-volumes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrinitronx%2Fdocker-gc-plus-volumes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrinitronx%2Fdocker-gc-plus-volumes/lists"}