The index service mainly provides the image index and the user authentication function. When you download an image, you first go to the index service for authentication, then look for the address of the registry where the image resides and put it back to the Docker client, and finally the Docker client downloads the image from registry, of course, during the download process Registry will go to index to verify the legitimacy of the client token. Different images can be stored on different registry services, and their index information is placed on the index service.
Open Source Community Docker warehouse implementation, there are two modes of operation
(1) Standalone=true: In this mode, the warehouse itself provides a simple index service, in the implementation process index is simply to achieve a simple indexing function, does not implement user authentication function
(2) Standalone=false: In this mode, the service access point of index needs to be configured, and the index service should be implemented by itself.
Interface provided externally by the index service
The rest API interface provided externally by index is as follows:
Put/v1/repositories/(namespace)/(Repo_name)/
Called in the process of Docker push, which is to create a repository. User passwords and permissions are validated before they are created and, if they are legitimate, a token to the Docker client is eventually returned
Delete/v1/repositories/(namespace)/(Repo_name)/
Delete a repository, before deleting the user password and permissions
Put/v1/repositories/(namespace)/(Repo_name)/images
Called in the Docker push process to update the image list corresponding to the repository, which verifies the token being carried before the update
Get/v1/repositories/(namespace)/(Repo_name)/images
Called in the Docker pull process to get a list of the repository corresponding to the image. The user's password and permissions are validated before getting it
Put/v1/repositories/(namespace)/(Repo_name)/auth
Verifying the legitimacy of tokens
get/v1/users/
Docker login is called to this interface to verify the legitimacy of the user
post/v1/users/
Docker login is called to this interface and can be used to create a user
put/v1/users/username/
Used to update user information
Free pick up Brother Lian IT Education Original Linux Operations Engineer video/Detailed Linux tutorials, details of the website customer service: http://www.lampbrother.net/linux/
or hooking up with Q2430675018.
Welcome to the Linux Communication Group 478068715
Docker Index Service Overview