Continue, this article describes the simplest steps of building a private warehouse.
For the summary:
Install the registry image and start the container.
CA certificate (There is also a way to directly use HTTP also line, you can omit this step)
Make the image, publish it.
The simplest way to install registry is to pull a ready-made registry image directly.
docker pull registry
Then start i
Environment:centos7.1Network: 192.168.10.100650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/8B/9B/wKioL1hSwVzypaIiAAAd4eDQrdk775.png "title=" 1.png " alt= "Wkiol1hswvzypaiiaaad4edqrdk775.png"/>First, pull down the warehouse image650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/8B/9C/wKioL1hSwgeyqsqgAAEcefmJgE4705.png "title=" 2.png " alt= "Wkiol1hswgeyqsqgaaecefmjge4705.png"/>By default, the repository is created in the container'
Docker version is 1.12.0CentOS 7Because I didn't play Docker myself, there was a problem with my colleague:21:07:24 localhost dockerd:time= "2016-08-17t21:07:24.864612251+08:00" Level=error msg= "attempting next endpoint For push after Error:get https://192.168.41.80:5001/v2/: Dial TCP 192.168.41.80:5001:getsockopt:connection refused "21:07:24 localhost dockerd:time= "2016-08-17t21:07:24.864884008+08:00" Le
After using git to download the source code, modify the configuration file config.yml, and change the Storage_path part to the storage location of the Docker image warehouse:$ git clone https://github.com/dotcloud/docker-registry$ CD Docker-registry$ CP config_sample.yml CONFIG.YML$ VI config.yml...# The default configuration when no flavor is specifiedDevStorage
names2355477e3c21 registry:2.3. 1 "/bin/registry/etc/d" 3 hours ago 3 Hours 0.0. 0.0:/tcp RegistryInstructions we have started the registry service, open the browser input http://127.0.0.1:5000/v2, the following situation shows that registry is working properly 3. Verify that the registryimage push to the local image library, we will flag the image as being pushed to the private warehouse via
Server ip:192.168.1.55:5000#docker Pull Resistry#docker run-itd-p 5000:5000-v/opt/data/registry/:/tmp/registry Registry=============Client Configuration#vi/etc/sysconfig/dockerOptions= '--selinux-enabled-b=kbr0--insecure-registry 192.168.1.55:5000 'Docker_cert_path=/etc/dockeradd_registry= '--add-registry 192.168.1.55 'insecure_registry= '--insecure-registry 192.168.1.55:5000 'Note that the symbols are all
How do I remove a mirror from a private registry?First, by default, Docker registry is not allowed to remove mirrors and needs to be enabled in the configuration config.yml : vim/etc/docker/registry/config.yml0.1 log: Fields : service:registrystorage: Delete: true Cache: blobdescriptor:inmemory filesystem: /var/lib/registryhttp: Addr:: headers:
reprinted from: https://blog.csdn.net/bxzhu/article/details/73253032
1. Environmental Preparedness
Linux version: Centos7
Docker version: 17.05.0-ce
2. Deploying registry
Get the image of registry using the Docker pull command
[Plain] View plain copy # sudo docker pull registry:2.1.1
Use Docker run to launch a conta
exchanges and discussions.Company Background Introduction:Shanghai Yun Axis Information Technology Co., Ltd. (hereinafter referred to as Shanghai Yun Axis) was established in 2015. The company initiated and maintained the next generation of open source cloud computing engine Zstack (http://zstack.org), the company's team members are from Silicon Valley and domestic foreign core research and development personnel, in the cloud-related core areas of more than 10 years of technology accumulation.
First, why to increase the WebUI1, increase the readability of the warehouse2, convenient for all people who use the warehouse to viewSecond, which webui to use to doDocker-registry-webThird, the specific steps1. Pull the imageDocker Pull Hyper/docker-registry-web2. Start WebUI and connect the warehouse at the same timeDocker run-d--restart=always-p 8080:8080--name registry-web--link docker-repo-e registry_
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.