Using a mirror to install docker docker registry PW, by https://hub.docker.com/_/registry Links Search registry Mirror
1, enter the command: docker pull registry, install the latest version of registry mirror;
2, need to configure the insecure-registeries docker profile information, as shown in FIG. Wherein daemon.json file below / etc / docker directories, registry mirror mounting machine is 192.168.20.34, the corresponding port 5000.
Restart the local docker service, use the command: systemctl restart docker.
3, and then start image registry, enter the command: docker run -itd --name site-registry -p 5000: 5000 -v / var / lib / registry: / var / lib / registry --restart = always registry
4, there is now assumed that the mirror is 192.168.20.34:5000/myubuntu, the use of docker push 192.168.20.34:5000/myubuntu command push registry PW.
5, browser access via http://192.168.20.34:5000/v2/_catalog , you can see all the images.
Note: For more registry api see https://docs.docker.com/registry/spec/api/ .