Image Registry

    Sign in with project-regular, enter into one project (e.g. demo-namespace), then select Configuration Center → Secrets.

    Click Create Secret button, then fill in the basic information in the pop-up window.

    • Name: A concise and clear name for this registry, which is convenient for users to browse and search, e.g. .
    • Alias: Helps you better distinguish resources and supports Chinese.
    • Description: A brief introduction to registry.

    Click Next when you’re done.

    QingCloud Docker Hub

    1. In the Secret Settings table, select Image Repository Secret as the type, then fill in the account authentication information of the image registry.
    • Registry Address: Use QingCloud image registry address dockerhub.qingcloud.com as an example.
    • Username/Password: Enter guest / guest
    • Email: Fill in your personal email address
    1. Click Create, then redirect to the secrets list to view the creation results.

    If you need to add Dokcer Hub as the image registry, first make sure you have already registered your account in Docker Hub. Then reference the same steps as above, fill in docker.io as the image registry address, and enter your personal DockerHub username and password.

    Add the Docker Hub

    Intro

    Harbor is an an open source trusted cloud native registry project that stores, signs, and scans content. Harbor extends the open source Docker Distribution by adding the functionalities usually required by users such as security, identity and management.

    Add the Internal Harbor

    Connect the External Harbor

    According to the address type of the Harbor, you need to divide into http and https:

    http
    1. You need to modify the Docker configuration in all nodes of the cluster. For example, if there is an external harbor registry and its IP is http://139.198.16.232, then you need to add a field as into /etc/systemd/system/docker.service.d/docker-options.conf.

    Sample

    1. $ sudo systemctl daemon-reload
    1. $ sudo systemctl restart docker
    1. Then, fill in the authentication information needed for the Harbor in Secret Settings, such as the IP address and user credentials, and click Create to create Harbor image registry.

    https
    1. For an image registry of the https protocol, firstly you need to get the image registry certificate, notes as ca.crt. Take the URL https://harbor.openpitrix.io as an example, you need to execute following command to all the nodes in the cluster:
    • If it still reports permission errors, you need to execute following command according to different operating systems:

    UBUNTU

    1. $ sudo update-ca-certificates

    RED HAT ENTERPRISE LINUX

    1. $ sudo update-ca-trust
    1. Next, you need to reload the configuration file and restart Docker when you’re done, see :
      1. Then fill in the authentication information needed for the image registry in KubeSphere console, and refer to the above steps of adding Docker Hub to create a Harbor image registry.

      Using a Image Registry

      Using a Image Registry