Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Public Docker v2 API Endpoints

Tags:

docker

api

Would someone know the equivalent URIs that are in v1:

registry.hub.docker.com/v1/  
index.docker.io/v1/

of what they are now for the public Internet sites in v2?

I've checked docs.docker.com/registry/spec/api/ for such URIs and on this site but everything keeps pointing back to a v1 address.

Goal here is in python to search for the public (not private) docker image then by it's search name pull the image down from the repository.

again, there is not about discussion of the local registry APIs that have been discussed. <<<

like image 884
George Oakes Avatar asked Feb 16 '16 22:02

George Oakes


1 Answers

I just inspected the network request and found this. Maybe it'll help

https://hub.docker.com/v2/search/repositories/?query=alpine

So I think the answer to your question is just hub.docker.com/v2, but reading the API v2 Roadmap, it isn't too clear on what all the endpoints and their supported parameters are (the Docker Hub REST API seems to be undocumented, unlike the Docker Registry API).

like image 85
OneCricketeer Avatar answered Nov 15 '22 06:11

OneCricketeer