Sign inSign up

tarcisiome/distribution

By tarcisiome

•Updated about 1 year ago

(Distribution fork) with an optional admin endpoint; pairs with the Registry Explorer web UI.

Image
Developer tools
0

181

tarcisiome/distribution repository overview

⁠tarcisiome/distribution

Fork of Distribution with an optional admin endpoint to delete empty repositories, designed to work with the Registry Explorer web UI.

⁠What it is

An OCI Distribution–compatible registry with one extra feature:

  • DELETE /v2/{name}/_admin/cleanup: removes a repository directory when it is logically empty (no tags and no manifests).

Guards:

  • storage.delete.enabled=true
  • not a cache (pull-through), not read-only
  • requires DELETE permission on the repository

Responses: 202 (deleted), 409 (not empty), 404 (not found), 401/403 (auth), 405/501 (unsupported).

⁠Run

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

⁠Frontend integration

Use with the Registry Explorer web UI:

⁠Notes

  • This endpoint is not part of the official Docker Registry HTTP API V2 and is intended for administrative use.
  • Use registry garbage-collect to remove unreferenced blobs.

Tag summary

Content type

Image

Digest

sha256:2ec890731…

Size

17.7 MB

Last updated

about 1 year ago

docker pull tarcisiome/distribution:3.1.0