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 server
When we pull a registry image or make a mirror ourselves, using the command Docker run-d-P 5000:5000 Registry, you can start a private container service, so how exactly does it work?First, Docker PS shows that cmd is "docker-
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
software):
If all goes well (for a complete guide to building a docker environment, see http://boot2docker.io/), you can now start a virtual machine in which Docker runs by using the following command:
Follow the on-screen instructions to copy and paste the Book2docker command in the terminal output. If you run docker ps the command n
operations, especially automatic start, service update, SSH access, log management, monitoring, security, network and so on. Because you still need to build and test a large number of solutions and new programs.To create a truly world-class infrastructure, many services from AWS and third-party companies are being adopted, including Elasticache,logging,new Relic. The ongoing work on hand has failover betwe
, your Docker version is at least Docker 1.6.
Docker developers have also been working to improve the experience of registry installation and use, simplifying registry configuration by providing official registry image and
Docker.1. $ Service Docker restart2. Docker Pull/push ImageTestMake an image to push to registry1. #查看本地已有镜像2. $ Docker Images3. REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE4. Registry 2 cd57aad0bd45 3 days ago 224.5 MB5. Nginx 1
download it when you're off duty.Throw it on top of the CENTOS7.
tar -zxvf harbor-offline-installer-0.5.0.tgz cd harbor#vi /etc/hosts10.0.2.15 reg.freewebsys.com
Set up an IP and then modify VI harbor.cfgDocker Registry is also required to install successfully.https://c.163.com/hub#/m/repository/version/?repoId=3099Can be downloaded from the domestic image, it is really hard to do it in China. Feel the 163 mirror should be a good point.
ObjectiveIn a previous blog, "Setting up a Docker registry private warehouse in Ubuntu" introduces a simple way to build a Docker private repository. But it was used to modify the "--insecure-registry" parameters, which is used in the local area network, but also reluctantly suitable. But if you want to build a private
... Pushing tag for Rev. [5577d6743652] on {https://cdn-registry-1.docker.io/v1/repositories/linfan/employees/tags/latest }
Once the commit is complete, you can use the Docker pull command to get the image on the other node.Note: Strictly speaking, exposing the database Services container through Docker link to the Application
One of the most frequently encountered problems in learning Docker recently is that, when downloading Docker image, because of a well-known network failure, there are many solutions on the web, such as the use of a domestic mirroring service like the Docker Hub Mirror, But for personal reasons (lucky to have a foreign
in processing registration information, while ensuring a minimized client impact.
Finally, stats can be viewed by accessing the port 1936来 on the Docker-discover container.
Run Docker-discover:
ETCD_HOST=w.x.y.z:4001docker run -d --net host --name docker-discover -e ETCD_HOST=$ETCD_HOST -p 127.0.0.1:1936:1936 -t jwilder/dock
directory is the directory for storing image files in the registry container ), to realize data persistence;-P: ing port. Access port 5000 of the host machine to access the service of the registry container;-- Restart = always: This is the restart policy. If the container exits abnormally, the container is automatically restarted;-- Name
our own container warehouse.
1, because we enable the Registry service is not secure and trustworthy, so we need to add the trusted parameters in all participating physical servers, specifically in the/etc/default/docker file, add the relevant parameters:--insecure-registry 192.168.12.132:5000
docker_opts= "-H 0.0.0.0
the terminal. But when you use the Docker logs commandTo check the log in registry, you will find the error message about the authentication.At this point, it is possible to follow the official documentation:Https://github.com/docker/distribution/blob/master/docs/insecure.mdTo do some configuration .......Re-push again# Dock
Digitalocean Another very detailed tutorial on how to build a private Docker registry on Ubuntu 14.04. The method on CentOs 7 is roughly the same as on Ubuntu, and here is a reference to the article, which is a building process on CentOS7. The first time I set foot on a lot of pits, but no record. This group is going to record a successful approach to the second-tier summary.
We know we can use hub.docker.com as our public or private registry. However, due to the server in foreign countries, the network speed will be very slow.
So when we build our container service with Docker, we want to be able to build our own private registry, upload mirrored values to our private
] ~]# Systemctl start Docker* set up Docker service boot[[email protected] ~]# Systemctl enable Docker* Pull registry image, for example, in Daocloud.io/registry this private mirror warehouse[email protected] ~]#
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.