Docker Hub provides a REST API to integrate the Hub capabilities through programs. The REST API is supported for both user and repository management.
User management supports the following features:
- User Login: This is used for user login to Docker Hub:
GET /v1/users
$ curl --raw -L --user vinoddandy:password
https://index.docker.io/v1/users
4
"OK"
0
- User Register: This is used for the registration of a new user:
POST /v1/users
- Update user: This is used to update the user's password and e-mail:
PUT /v1/users/(username)/
Repository management supports the following features:
- Create a user repository: This creates a user repository:
PUT /v1/repositories/(namespace)/(repo_name)/
$ curl --raw -L -X POST --post301 -H
"Accept:application/json" -H "Content-Type:
application...