Official Image information via API v2

I have read Docker Hub API v1 (deprecated) | Docker Docs and struggling to find ways to interact with dockerhub via the api to interrogate official images as these do not have namespace immediately available…

The v2 request require a namespace to get image tag information and official images don’t seem to have one



any tips or tricks would be greatly appreciate

Without checking whether it should work or not, the official images actually have a namespace, but referring to it in the image name is not required. The namespace is “library”. That is why you could pull an official image like this:

docker pull library/bash
1 Like

Thank you so very much