Install docker and private repository on centos71. initialize the networkAfter centos7 is installed, yum prompts that the domain name cannot be resolved. view the local network, ifconfig is unavailable, and ip commands in centos7 proxy ifconfig.Ip addr. Only the local loopback address is displayed.Cd/etc/sysconfig/network-scripts, ViewFile corresponding to the NIC nameOnboot is noChange to yes. After centos
I. Download Registry#yum install-y python-devel libevent-devel python-pip gcc xz-devel#python-pip install Docker-registry Two. Perform the following actions on all Docker hosts #vi/etc/sysconfig/docker set other_args= '--insecure-registr
How to build a private docker repository using CentOSPreface
Because most of the image download websites are abroad, Chinese users often encounter slow downloading speeds when downloading images. In addition, when Docker is applied to the production environment, whether the downloaded Docker image is secure or not.
Bu
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 CON
build docker-registry on Mac server
2014-03-14 0 Comments Source: Build Docker-registry collection on Mac server
I want to contribute
.
This article describes how to build Docker's registry under Mac, we download
upper-class business, it does not need to care whether it is running in a container or a KVM virtual machine. The future of the idea is the application of micro-service, the top of the business to split, into a micro-service, thus docking PAAs based on container deployment and grayscale release.
Technical framework
Before I introduce the preparation of the Double 11, let me briefly introduce the technical architecture of the private cloud on Mushro
System Environment: CENTOS7Docker version: 1.12.3 (note the version, there may be different version settings different scenarios)Docker Registry version: 2.4.1Problem:Successfully installed Docker registry, entered Http://192.168.1.100:5000/v2 in the browser and successfully returned the JSON data. When you push to
1. Pull the Docker registry imageDocker Pull Registry2. Create a certificate store directoryMkdir-p/home/registry3, Generate CA CertificateEdit your/etc/ssl/openssl.cnf on the logstash host-add subjectaltname = ip:10.1.10.1 inch [V3_ca] section.In general, the certificate only supports domain name access, to enable it to support IP address access, you need to modify the configuration file OPENSSL.CNF.In the
Docker if you need to manage the image from a non-SSL source, you need to configure the Insecury-registry parameter for the Docker profile, typically modifying its configuration file in the following location:*/etc/sysconfig/docker*/etc/init.d/dockerBy default, the Insecure_registry parameter is commented out and can b
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
10.40.100.145 onDocker run-d--name consul0--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8500:8500 \docker-registry.venic.com:5000/consul:latest-server-advertise 10.40.100.145-bootstrap-expect 310.40.100.146 onDocker run-d--name consul1--restart=always-v/mnt:/data \- P 8300:8300 \- P 8301:8301 \- P 8301:8301/udp \- P 8302:8302 \- P 8302:8302/udp \- P 8400:8400 \- P 8
Configure HTTP protocol support for Docker acceleration and private warehouses
first, configuration acceleration
First, register an account with Daohub, and then follow the instructions to configure it by clicking here to enter the acceleration page. second, enable Docker to pull the mirror from the non-HTTPS protocol hub repository 1. Edit the file
Vim/etc/
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--na
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's/tmp/r
this is a temporary modification of the program, but also need to enter the operating system to modify the password. The restart is useless.Then you can log in normally:Change Password After login:
sudo passwd core
Restart again to use the core user login.This method is the simplest and most effective.
3. Turn on remote access
sudo systemctl enable sshdsudo systemctl start sshd
The default boot starts the remote service. In the network configuration inside the VirtualBox, set up port forwar
]~]# [[Emailprotected]~]#dockerrun-d-p5000:5000--name registryregistry:0.9.1e407b8224975bcfe47a93d63b52b8eae164ec7c0abae44d4c546796c99115b00[[email protected]~]#dockerps-aCONTAINERID IMAGE COMMAND CREATED STATUS PORTS namese407b8224975registry:0.9.1 "Docker-registry" aboutaminuteagoup59seconds 0.0.0.0:5000->5000/tcp registryInstallation of the 3.csphere Docker
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.