Docker Hub and docker registry REST API

Let's discuss Docker Registry API and Docker Hub API and list the API endpoints related to searching and downloading the images. We will be using the command-line tool curl, but you can use any REST client of your choice, even your web browser.

First, let's check the status of the remote registry, by issuing a call to /_ping endpoint, by executing an HTTP GET:

curl -k 

The registry will reply with a simple true value, that it's up and running.

First, we need to login or verify if we are logged in. Authorization is done with Basic Auth over SSL. To deal with user accounts, the API exposes the /users endpoint. Now, issue a GET on the following URL: ...

Get Developing with Docker now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.