0

I need to get all repositories with a provided name from DockerHub. I already tried various ways to get to next page of results received for the following call:

curl -k -H "Accept: application/json" -X GET https://index.docker.io/v1/search?q=sonarqube

Options which haven't worked:

curl -k -H "Accept: application/json" -X GET https://index.docker.io/v1/search?q=sonarqube&n=25&page=2

curl -k -H "Accept: application/json" -X GET https://index.docker.io/v1/search?q=sonarqube&page_size=25&page=2

Am I missing anything, or is there an alternative to get these results?

Laurel
  • 5,965
  • 14
  • 31
  • 57
Amith
  • 6,818
  • 6
  • 34
  • 45
  • This is longer supported in V2 api, http://stackoverflow.com/questions/37082826/insufficient-scope-when-attempting-to-get-docker-hub-catalog – Amith May 30 '16 at 06:21

1 Answers1

1

I simply used this link to navigate to the second page: https://index.docker.io/v1/search?q=sonarqube&page=2

I works for page attibute range from 1 to num_pages which is returned in the JSON response. If you provided a number higher than num_pages it returns the last page.

Curl command as requested: curl -k -H "Accept: application/json" -X GET "https://index.docker.io/v1/search?q=sonarqube&page=2"

Arnaud Develay
  • 3,920
  • 2
  • 15
  • 27
  • Can you give a curl request for this? – Amith Jun 03 '16 at 09:39
  • The command is `curl.exe -k -H "Accept: application/json" -X GET "https://index.docker.io/v1/search?q=sonarqube&page=2"` . The `&` character is a special charactar and you have to specify the url between double quotes. – Arnaud Develay Jun 03 '16 at 11:13