API Notes: https://docs.docker.com/registry/spec/api/#listing-repositories
Method I have for listing images in the registry:
wget https://user:pass@dockerregistry.metcarob.com/v2/_catalog
There is pagination here!
Get all the tag
wget https://user:pass@dockerregistry.metcarob.com/v2/hello-world123/tags/li…
Get the manifest:
wget https://user:pass@dockerregistry.metcarob.com//v2/hello-world123/manife…
Deleting images from the repository
This is nasty see https://stackoverflow.com/questions/29802202/docker-registry-2-0-how-to…
TODO Method to get DIGEST
Delete the image
wget --method=DELETE https://user:pass@dockerregistry.metcarob.com//v2/hello-world123/manife…
Garbage collection
Run inside container
-
registry garbage-collect --dry-run /etc/docker/registry/config.yml
RJM Article Type
Work Notes