Prerequisite

  • Prepare an available image repository. Use the Docker Hub official service in this example, which requires you to register a Docker ID and build an available repository in it.
  • Configure the independent logon password for the repository. In this example, log on to the Container Registry console to configure or modify the repository logon password. Note that you are configuring the password when you modify the repository logon password for the first time.

Background information

You can log on to the image repository in a cluster to provide the related cluster logon information, which facilitates you to manage clusters by using cluster management tools.

Procedure

  1. Log on to the Container Service console.
  2. Click Clusters in the left-side navigation pane.
  3. Click Manage at the right of the cluster you want to configure.


  4. Click Log on to Hub.


  5. Configure the parameters in the displayed dialog box.


    • Repository Domain Name: Enter the hub domain name of the image repository. Take the image address registry.cn-hangzhou.aliyuncs.com/acs/agent:0.8 as an example. The repository domain name is registry.cn-hangzhou.aliyuncs.com .
    • Username: Enter the username of the image repository. In this example, enter the Docker ID registered in Docker Hub.
    • Password: Enter the independent logon password of the image repository. In this example, enter the logon password set when you registered in Docker Hub. Registry's login password is set and modified on the container mirroring Service's console.
    • Email: Enter the email set when you registered the image repository. In this example, enter the email set when you registered in Docker Hub.
  6. Click OK. You have successfully logged on to the image repository if no error message appears.