How to get docker registry/repository information with curl


Ever had to get an image manifest for a docker image in a repository before or other information from the registry directly? I know I have. Here’s how you can achieve this with curl.

To access this type of information from the Docker Hub registry you can use:

How about from ECR? Boy have I!

And there you go, an easy way to use curl to authenticate to a compatible docker registry and retrieve data for an images manifest and the tags associated with a repository. No fuss, no muss.

For more information about what other data is available via this method, try having a look at the Docker Registry API reference.