{"id":37144364,"url":"https://github.com/fraunhoferfokus/deckschrubber","last_synced_at":"2026-01-14T16:57:07.812Z","repository":{"id":46186773,"uuid":"91310902","full_name":"fraunhoferfokus/deckschrubber","owner":"fraunhoferfokus","description":"Deckschrubber inspects images of a Docker Registry and removes those older than a given age. :high_brightness::ship:","archived":false,"fork":false,"pushed_at":"2025-12-30T13:32:08.000Z","size":51,"stargazers_count":270,"open_issues_count":9,"forks_count":51,"subscribers_count":17,"default_branch":"master","last_synced_at":"2026-01-02T07:33:06.013Z","etag":null,"topics":["docker","docker-registry","docker-registry-cleanup"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fraunhoferfokus.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-15T08:01:53.000Z","updated_at":"2025-12-30T13:32:12.000Z","dependencies_parsed_at":"2022-09-26T18:31:42.546Z","dependency_job_id":null,"html_url":"https://github.com/fraunhoferfokus/deckschrubber","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fraunhoferfokus/deckschrubber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraunhoferfokus%2Fdeckschrubber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraunhoferfokus%2Fdeckschrubber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraunhoferfokus%2Fdeckschrubber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraunhoferfokus%2Fdeckschrubber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fraunhoferfokus","download_url":"https://codeload.github.com/fraunhoferfokus/deckschrubber/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fraunhoferfokus%2Fdeckschrubber/sbom","scorecard":{"id":410005,"data":{"date":"2025-08-11","repo":{"name":"github.com/fraunhoferfokus/deckschrubber","commit":"72c5ed21301c7a9d6a258023419f01e2390e9a5b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":3,"reason":"Found 7/18 approved changesets -- score normalized to 3","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Affero General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v0.6.0 not signed: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/11607297","Warn: release artifact v0.5.0 not signed: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/10021007","Warn: release artifact v0.4.0 not signed: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/9521580","Warn: release artifact v0.3.0 not signed: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/7738174","Warn: release artifact v0.2.0 not signed: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/7045366","Warn: release artifact v0.6.0 does not have provenance: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/11607297","Warn: release artifact v0.5.0 does not have provenance: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/10021007","Warn: release artifact v0.4.0 does not have provenance: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/9521580","Warn: release artifact v0.3.0 does not have provenance: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/7738174","Warn: release artifact v0.2.0 does not have provenance: https://api.github.com/repos/fraunhoferfokus/deckschrubber/releases/7045366"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 19 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0379 / GHSA-qq97-vm5h-rrhg","Warn: Project is vulnerable to: GHSA-hqxw-f8mx-cpmw","Warn: Project is vulnerable to: GHSA-77vh-xpmg-72qh","Warn: Project is vulnerable to: GO-2022-0229 / GHSA-cjjc-xp8v-855w","Warn: Project is vulnerable to: GO-2020-0012 / GHSA-ffhg-7mh4-33c4","Warn: Project is vulnerable to: GO-2021-0227 / GHSA-3vm4-22fp-5rfm","Warn: Project is vulnerable to: GO-2022-0968 / GHSA-gwc9-m7rh-j2ww","Warn: Project is vulnerable to: GO-2021-0356 / GHSA-8c26-wmh5-6g9v","Warn: Project is vulnerable to: GO-2024-2961","Warn: Project is vulnerable to: GO-2023-2402 / GHSA-45x7-px36-x8w8","Warn: Project is vulnerable to: GO-2024-3321 / GHSA-v778-237x-gjrc","Warn: Project is vulnerable to: GO-2025-3487 / GHSA-hcg3-q754-cr77"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T22:26:14.505Z","repository_id":46186773,"created_at":"2025-08-18T22:26:14.505Z","updated_at":"2025-08-18T22:26:14.505Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28427160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T16:38:47.836Z","status":"ssl_error","status_checked_at":"2026-01-14T16:34:59.695Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","docker-registry","docker-registry-cleanup"],"created_at":"2026-01-14T16:57:07.253Z","updated_at":"2026-01-14T16:57:07.802Z","avatar_url":"https://github.com/fraunhoferfokus.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deckschrubber\n\u003e *n. person responsible for scrubbing a ship's deck.*\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/fraunhoferfokus/deckschrubber)](https://goreportcard.com/report/github.com/fraunhoferfokus/deckschrubber)\n[![License](https://img.shields.io/github/license/fraunhoferfokus/deckschrubber)](https://github.com/fraunhoferfokus/deckschrubber/blob/master/LICENSE)\n\nDeckschrubber inspects images of a [Container Registry](https://distribution.github.io/distribution/) and removes those older than a given age.\n\n## Quick Start\n\n```bash\ngo get github.com/fraunhoferfokus/deckschrubber\n$GOPATH/bin/deckschrubber\n```\n\n## Why this?\nWe run our own private registry on a server with limited storage and it was only a question of time, until it was full! Although there are similar approaches to do Docker registry house keeping (in Python, Ruby, etc), a native module (using Docker's own packages) was missing. This module has the following advantages:\n\n* **Is binary!**: No runtime, Python, Ruby, etc. is required\n* **Uses Docker API**: same packages and modules used to relaze Docker registry are used here\n\n## Arguments\n```\n-day int\n  max age in days\n-debug\n  run in debug mode\n-dry\n  does not actually deletes\n-insecure\n  Skip insecure TLS verification\n-latest int\n  number of the latest matching images of an repository that won't be deleted (default 1)\n-month int\n  max age in months\n-ntag string\n  non matching tags (allows regexp)\n-page-size int\n  Number of entries to fetch upon each request (default = 100) (default 100)\n-paginate\n  Set to use pagination when fetching repositories (default = false)\n-password string\n  Password for basic authentication\n-registry string\n  URL of registry (default \"http://localhost:5000\")\n-repo string\n  matching repositories (allows regexp) (default \".*\")\n-repos int\n  number of repositories to garbage collect (before filtering, lexographically sorted by server) (default 5)\n-tag string\n  matching tags (allows regexp) (default \".*\")\n-user string\n  Username for basic authentication\n-v    shows version and quits\n-year int\n  max age in days\n```\n\n## Proxy\nTo access the target registry via proxy, set proxy environment variable(s) as described by Golang's [net/http package](https://pkg.go.dev/net/http#ProxyFromEnvironment).\n\n## Registry preparation\nDeckschrubber uses the Docker Registry API. \nIts delete endpoint is disabled by default, you have to enable it with the following entry in the registry configuration file: \n\n```\ndelete:\n  enabled: true\n```\n\nSee [the documentation](https://distribution.github.io/distribution/about/configuration/#delete) for details.\n\n## Examples\n\n* **Remove all images older than 2 months and 2 days**\n\n```\n$GOPATH/bin/deckschrubber -month 2 -day 2\n```\n\n* **Remove all images older than 1 year from `http://myrepo:5000`**\n\n```\n$GOPATH/bin/deckschrubber -year 1 -registry http://myrepo:5000\n```\n\n* **Analyize (but do not remove) images of 30 repositories**\n\n```\n$GOPATH/bin/deckschrubber -repos 30 -dry\n```\n\n* **Remove all images of each repository except the 3 latest ones**\n\n```\n$GOPATH/bin/deckschrubber -latest 3 \n```\n\n* **Remove all images with tags that ends with '-SNAPSHOT'**\n\n```\n$GOPATH/bin/deckschrubber -tag ^.*-SNAPSHOT$ \n```\n\n* **Use pagination when querying server**\n\n```\n$GOPATH/bin/deckschrubber -paginate -page-size 50 -repos 150\n```\n\n*Note* that `-paginate` must be present for `-page-size` to have an effect. If pagination is enabled, `-repos` should be larger than `-page-size`, otherwise it has the same effect as without pagination.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraunhoferfokus%2Fdeckschrubber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffraunhoferfokus%2Fdeckschrubber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffraunhoferfokus%2Fdeckschrubber/lists"}