2019-07-05: How to query for Containers at mcr.microsoft.com
Motivation
Microsoft moved their Container images from Docker Hub to their own Container registry=> https://azure.microsoft.com/en-gb/blog/microsoft-syndicates-container-catalog/
The problem is that "mcr.microsoft.com" does not have the Docker Hub user experience and it is not possible to search and list the container images.
So I need to find a user friendly way to browse the images at https://mcr.microsoft.com
The HOW
Thankfully, Microsoft have implemented the interface of Docker Registry HTTP API V2 => https://cloudblogs.microsoft.com/opensource/2019/01/17/improved-discovery-experience-microsoft-containers-docker-hub/
So how to use this?
First, open the docs Docker Registry HTTP API V2 to read the specifiations.
Second, I have shared all the Postman samples here => https://documenter.getpostman.com/view/43927/SVSDPWkN
To list all the repositories at mcr.microsoft.com:
https://mcr.microsoft.com/v2/_catalog
To list the tags for a image:
https://mcr.microsoft.com/v2/dotnet/core/samples/tags/list
To find the size of the Container Image:
- Add "Accept:application/vnd.docker.distribution.manifest.v2+json" in the header to change response format. The format is documented here => https://docs.docker.com/registry/spec/manifest-v2-2/
Conclusion
Well, this is not very user friendly, but at least we have a way to query the registry.