Docker Index Service Overview

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.