In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Registry: register the server, which is used to manage the image repository and acts as a server.
Harbor is an open source Registry server project designed by VMware China team for enterprise users, including rights management (RBAC), LDAP, audit, management interface, self-registration, HA and other necessary functions. According to the characteristics of Chinese users, design image replication and Chinese support and other functions, welcome to use and feedback.
As an enterprise-class private Registry server, Harbor provides better performance and security. Improve the efficiency of users using Registry to build and run the environment to transfer images. Harbor supports replication of image resources installed on multiple Registry nodes, and all images are stored in private Registry to ensure that data and intellectual property rights are controlled in the company's internal network. In addition, Harbor also provides advanced security features, such as user management, access control and activity auditing.
Step 1: install docker compose [in epel and extra sources]
1) configure yum source
[root@host1 ~] # vim / etc/yum.repos.d/epel.repo [epel] name=epelbaseurl= https://mirrors.tuna.tsinghua.edu.cn/epel/7Server/x86_64/enabled=1gpgcheck=0
2) install docker-compose
[root@host1 ~] # yum install docker-compose step 2: download and install harbor
1) download path
Https://storage.googleapis.com/harbor-releases/harbor-offline-installer-v1.5.4.tgz
2) decompression
[root@host1 ~] # tar xf harbor-offline-installer-v1.5.4.tgz [root@host1 ~] # mv harbor / usr/local/
3) Edit configuration file
[root@host1 ~] # vim / usr/local/harbor/harbor.cfg
Modify one line of hostname to specify your own hostname
Hostname = host1
4) start harboor
Starting harbor is actually the process of starting the container dependent image defined in yaml in tar.gz under the harbor directory, so the process of starting the container is the process of decompressing, importing, and finally starting the container.
Install docker-compose [extra and Epel sources] [root@host1 ~] # yum install docker-compose
Start the docker service
[root@host1 harbor] #. / prepare [root@host1 harbor] #. / install.sh
5) Log in to harbor
The default user is the admin password in the harbor configuration file, which is Harbor12345
Step 3: use harbor
1) create two projects: public and private
2) push image to nginx project
3) tag the image
[root@host2 ~] # docker tag nginx:1.14-alpine 172.16.100.3/nginx/nginx:v1-1 [root@host2 ~] # docker tag nginx:1.14-alpine 172.16.100.3/nginx/nginx:v1-2 [root@host2 ~] # docker tag nginx:1.14-alpine 172.16.100.3/nginx/nginx:v1-3 can push a specific image when pushing You can also push all the images under the nginx repository. For private repositories, you need to log in to push. If harbor uses the http protocol, you must modify the docker configuration file so that docker can trust the http protocol warehouse site.
4) modify the docker configuration file and trust the docker repository {"registry-mirrors": ["https://registry.docker-cn.com"," https://mzxx8xy8.mirror.aliyuncs.com"],"hosts": ["tcp://0.0.0.0:3725", "unix://var/run/docker.sock"], "insecure-registries": ["host2:5000", "http://172.16.100.3"]}"
5) Log in to the docker warehouse and push
[root@host1 ~] # docker lognin http://172.16.100.3 ^ C [root@host1 ~] # [root@host1 ~] # docker push 172.16.100.3/nginx/nginx
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.