{"id":16674192,"url":"https://github.com/byrnedo/docker-reg-tool","last_synced_at":"2025-07-21T04:08:29.997Z","repository":{"id":45831067,"uuid":"57306276","full_name":"byrnedo/docker-reg-tool","owner":"byrnedo","description":"Docker registry cli tool, primarily for deleting images.","archived":false,"fork":false,"pushed_at":"2023-10-26T06:04:40.000Z","size":20,"stargazers_count":197,"open_issues_count":4,"forks_count":56,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-05-20T05:02:08.385Z","etag":null,"topics":["docker","docker-registry","docker-registry-cleanup"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/byrnedo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-04-28T14:01:52.000Z","updated_at":"2025-05-05T10:55:08.000Z","dependencies_parsed_at":"2022-08-02T22:45:37.105Z","dependency_job_id":"d0d26243-c53f-4080-bf22-cf0143de2973","html_url":"https://github.com/byrnedo/docker-reg-tool","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/byrnedo/docker-reg-tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byrnedo%2Fdocker-reg-tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byrnedo%2Fdocker-reg-tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byrnedo%2Fdocker-reg-tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byrnedo%2Fdocker-reg-tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/byrnedo","download_url":"https://codeload.github.com/byrnedo/docker-reg-tool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/byrnedo%2Fdocker-reg-tool/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266236984,"owners_count":23897306,"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":["docker","docker-registry","docker-registry-cleanup"],"created_at":"2024-10-12T12:29:41.264Z","updated_at":"2025-07-21T04:08:29.968Z","avatar_url":"https://github.com/byrnedo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Registry Tool\n\nSmall bash script to do repetitive things with docker registry \u003e 2.1 ( I think, whichever version supports delete by manifest)\n\n## Dependencies\n\n[Jq](https://stedolan.github.io/jq/)\n\n```\nUsage:\n\n    ./docker_reg_tool REGISTRY_BASE_URL ACTION [OPTIONS..]\n\n    Actions:\n\n    - list               list repos\n\n    - list REPO          list tags for repo\n\n    - delete REPO TAG    delete tag for repo\n\n    Example:\n\n    List all repos\n        /$ ./docker_reg_tool https://registry.my.domain list\n\n    List tags for one repo\n        /$ ./docker_reg_tool https://registry.my.domain list some-repo\n\n    Delete tag for a repo\n        /$ ./docker_reg_tool https://registry.my.domain delete some-repo some-tag\n\n```\n\nIf you want something more fully featured then check out [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).\n\n## Docker config file location\n\nIf your config.json location is not ~/.docker/config.json, you can define the location with the DOCKER_CONFIG environment variable.\n\n    DOCKER_CONFIG=\"/your/path/to/docker/config.json\" ./docker_reg_tool ...\n\n## Credentials\n\n...are sniffed out of ~/.docker/config.json. So you need to do `docker login...` before you can use this tool.\n\nThey can also be set with the `BASIC_AUTH` environment variable.\n\n    BASIC_AUTH=user:pass ./docker_reg_tool ...\n\nOnly been tested on Basic auth.\n\n## Insecure Registry\n\nSet the `INSECURE_REGISTRY` to true;\n\n    INSECURE_REGISTRY=true ./docker_reg_tool ...\n\n## Registry Settings\n\nIn order for this to work, the registry needs to be running with\nIf docker image:\n```\nREGISTRY_STORAGE_DELETE_ENABLED=\"true\"\n```\nOr in the config file:\n```\nstorage:\n  delete:\n    enabled: true\n```\n\nAlso, the size will not decrease until the garbage collector runs.\nYou can trigger it manually with:\n```\ndocker exec registry /bin/registry garbage-collect -m=true /etc/docker/registry/config.yml\n```\n\n## Debugging\n\nSet the `TRACE` environment variable to true to turn on `set -x`\n\n    TRACE=true ./docker_reg_tool ...\n\n## Docker Image\n\nSee https://hub.docker.com/r/byrnedo/reg-tool/\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyrnedo%2Fdocker-reg-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyrnedo%2Fdocker-reg-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyrnedo%2Fdocker-reg-tool/lists"}