(Distribution fork) with an optional admin endpoint; pairs with the Registry Explorer web UI.
181
Fork of Distribution with an optional admin endpoint to delete empty repositories, designed to work with the Registry Explorer web UI.
An OCI Distribution–compatible registry with one extra feature:
/v2/{name}/_admin/cleanup: removes a repository directory when it is logically empty (no tags and no manifests).Guards:
storage.delete.enabled=trueResponses: 202 (deleted), 409 (not empty), 404 (not found), 401/403 (auth), 405/501 (unsupported).
docker run --rm -p 5000:5000 \
-v $(pwd)/cmd/registry/config-dev.yml:/etc/distribution/config.yml \
-v registry-data:/var/lib/registry \
docker.io/tarcisiome/distribution:TAG
Enable deletion:
storage:
delete:
enabled: true
Test the endpoint:
curl -i -X DELETE http://localhost:5000/v2/forge/_admin/cleanup
Use with the Registry Explorer web UI:
registry garbage-collect to remove unreferenced blobs.Content type
Image
Digest
sha256:2ec890731…
Size
17.7 MB
Last updated
about 1 year ago
docker pull tarcisiome/distribution:3.1.0