Label: docker
Although the official docker hub of docker provides a lot of images, it basically includes what we need to use, but its access is slow. If you want to customize the image, sharing among multiple servers is inconvenient to use this image. At this time, we urgently need a local private warehouse. The foll
Centos6.5 create a private docker RepositoryDocker private Registry Installation Guide under centos 6.x
Note:
docker.yy.comThis is the domain name of the docker registry server, that is, the host address of your company's
1. Background Docker due to the docker1.3.x version of Docker registry adopted Https, The previous section Docker HTTP subordinate finally Docker Push/pull will be the error prompt, need to do special processing. 2. Private
1. Environment
1) Ubuntu14.04
2) Docker 1.12.0
2, in the Ubuntu14.04 virtual machine installed Docker 1.12.0, this experiment to create two virtual machines, The IP is 192.168.110.137 and 192.168.110.138, where 192.168.110.138 's hostname is ip-192-168-110-138.ec2.internal, and the hosts in 192.168.110.138 The following records are added to this
192.168.110.138 ip-192-168-110-138 ip-192-168-110-138.ec2.int
RELATED LINKSGithub:https://github.com/dotcloud/docker-registryapi:http://docs.docker.com/reference/api/registry_api/
Install Docker-registry
The official gave a command to create container, running Docker run-d-P 5000:5000 registry on a machine equipped with Docker.This s
Docker Private Warehouse Recovery
Prior to the OpenStack platform due to power outages and other effects, resulting in the previous production of registry private warehouse host hung up, fortunately the data is mounted in NFS, and then now try to restart the recovery.
Virtual Machine Install NFS Service
Apt-get inst
First, Harbor Introduction:To put it simply, Harbor is an enterprise-class Docker Registry that implements functions such as images's private storage and log statistics permissions control, and supports the creation of multiple projects (Harbor concepts), based on the official Registry V2.Second, the deployment method:
This article describes how to build a localized Docker image warehouse on the POWER8 server, which involves mirroring production, Docker Registry service startup, and so on. I want to be able to provide reference for the students who build Docker warehouses on non-X86 servers.Disclaimer: This article is only used as a
1.Docker Registry Description
This article records the personal complete construction Docker registry operation Process, although the official provided the Docker hub as an open centralized storehouse, but the celestial network is conceivable, the first time pull a mirror n
. When the docker environment crashes, you can use these two scripts for initialization (the original virtual machine will be deleted, so be careful when using them ).
Install docker private Repository# Docker pull Registry# Docker
Generate a certificate of your own signatureThe process of generating the signature needs to be prompted to enter some parameters, you need to note that when common name needs to enter a domain name that you need, if the internal domain name remember when you need to modify the hosts.Mkdir/data/certs-pCd/data/certsOpenSSL Req-newkey rsa:4096-nodes-sha256 \-keyout domain.key-x509-days 365-out DOMAIN.CRTRunning Docker
following practices to reduce security settings:
12
docker-machinesshdefaultsudovi/var/lib/boot2docker/profile
At the end of the profile, add:
1
EXTRA_ARGS="--insecure-registry 192.168.99.100:5000"
Then exit the default, and enter the following command to restart the virtual machine
1
The previous article said how to build a private warehouse, but after the warehouse was set up, it was not convenient to maintain the mirrors in the warehouse, Docker officially did not have a good command line interface to use, but provided APIs that could be used to view and remove mirrors by invoking these APIs, but these APIs are really hard to use, So I found out that there's an Open-source Python tool
Docker's private warehouse, like Maven's, is typically used to build a docker hub-like environment within the company, so uploading and downloading mirrors are faster, and this article demonstrates how to use Docker-machine on a Mac to build a private warehouse without SSL certificates.One, view
Environment preparation
Use two machines, one to do Docker private warehouse, one to do Docker image submission
Make sure Docker is installed on both machines and start the Docker service
The name of the Docker
When the Docker Registry V2 comes out, it's really good to be simple and practical, but when you change port 5000 to something else, or use a domain name binding, it's a mistake. Here is a detailed record of the process of your own experience.First, the installation of Docker Registry V2 (distribution).Here I chose to
1. Create a Docker Registry container command:Docker run-d-P 5000:5000 Registry2, after the container starts, Access http://ip:5000, you can see:"\" Docker-registry server\ ""3. Label the image and point it to your registry 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.