Private Registry

    • Docker version is or later

    Using the 2.5.1 version as an example to show how to run docker registry.

    The image name of Docker official registry Distribution at hub.docker.com is registry

    1、Pull the registry image to the local

    2、Start the registry service

    Refer to the registry configuration instructions

    If you can access the registry interface _catalog, the service starts successfully.

    You need to modify the Docker configuration before pull and push images.

    In the following configuration instructions, is the IP address or host domain name of the registry server.

    • CentOS 6

      Modify /etc/sysconfig/docker

      In the other_args option add “—insecure-registry <registry_server>:5000”

      If there is no other_args option for Docker version differences, need to find INSECURE_REGISTRY option and modified to: INSECURE_REGISTRY=”<registry_server>:5000”

      In the CentOS 7 system, first see if there is a configuration in /usr/lib/systemd/system/docker.service.

    File content may be slightly different, just pay attention to the EnvironmentFile andExecStart part in the red box, make sure to link to the configuration file path and the relevant environment variable INSECURE_REGISTRY.

    • Ubuntu

      Modify /etc/default/docker

      Find the INSECURE_REGISTRY option and change to: INSECURE_REGISTRY =” <registry_server>: 5000 “

    Restart the Docker local service after the configuration, and check whether the configuration takes effect. If the process appears, the --insecure-registry parameter indicates that the configuration takes effect.

    Log in to Humpback as an administrator and expand the left Manage and click System Config. Enter the system configuration interface, check the Enable Private Registry, and fill in the private registry service address and Save.