Centos 7.x Deployment Harbor Mirrored Warehouse

Source: Internet
Author: User

First, the Environment preparation

Os:centos Linux release 7.5.1804 (Core)?
ip:172.16.8.46

Installation requirements are as follows:

Second, Docker installation

Reference 80454019

Third, installation Docker-compose

Curl-l https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$ (uname-s)-$ (uname-m)-o/usr/ Local/bin/docker-compose
chmod +x/usr/local/bin/docker-compose

Iv. Installation and Configuration Harbor
Download the offline installation package
Https://github.com/goharbor/harbor/releases

Saved Baidu offer download?? Link: https://pan.baidu.com/s/1j6Vru5yCGNT-wXQN-4WOEw Password: khs8

vim harbor.cfg 改为当前服务器IPhostname = 172.16.8.46


Login WebUI

默认用户/密码 admin/Harbor12345http://172.16.8.46

Configuring local Deamon.json Files

cat /etc/docker/daemon.json?{? "registry-mirrors": ["https://registry.docker-cn.com", "https://docker.mirrors.ustc.edu.cn"],?? "insecure-registries": ["172.16.8.46"],? "max-concurrent-downloads": 10,? "log-driver": "json-file",? "log-level": "warn",? "log-opts": {? ? "max-size": "10m",? ? "max-file": "3"? ? }}

Docker service must be restarted
[Email protected] harbor]# systemctl restart Docker.service?
? ? ? ??

[[email protected] harbor]# docker-compose stopStopping harbor-db ?... doneStopping harbor-log ... done[[email protected] harbor]# docker-compose startStarting log ? ? ? ? ... doneStarting registry ? ?... doneStarting postgresql ?... doneStarting adminserver ... doneStarting ui ? ? ? ? ?... doneStarting redis ? ? ? ... doneStarting jobservice ?... doneStarting proxy ? ? ? ... done[[email protected] harbor]#?

Test

[[email protected] harbor]# docker pull nginxUsing default tag: latestlatest: Pulling from library/nginx802b00ed6f79: Pull complete?e9d0e0ea682b: Pull complete?d8b7092b9221: Pull complete?Digest: sha256:24a0c4b4a4c0eb97a1aabb8e29f18e917d05abfe1b7a7c07857230879ce7d3d3Status: Downloaded newer image for nginx:latest
[[email protected] harbor]# docker imagesrepository??????????????????????? TAG???????? IMAGE ID?????? CREATED?????? Sizenginx??????????????????? Latest???????????? 7 days ago. v0.7.1-v1.6.0??? b67537c8726d 7 days ago????????????????????. 7 Day S ago????? 803mbgoharbor/redis-photon????? v1.6.0???????????? 7 days ago. v2.0.5-v1.6.0??? 3c5c2968147d???? 7 days ago????? 309mbgoharbor/notary-server-photon? v0.5.1-v1.6.0??? 4dd7df4ad4b6???? 7 days ago????? 215mbgoharbor/notary-signer-photon? v0.5.1-v1.6.0??? 78decf4dc4d9????? 7 days ago????? 98bf341403a5 7 days ago????? 201mbgoharbor/nginx-photon.???? v1.6.0???????????? 7 days ago 138mbgoharbor/harbor-log???????????? v1.6.0???????????. 7 days ago??????????????????????????????????  9ce10be 7 days ago????????????????????. 7 days ago ????? 221mbgoharbor/harbor-adminserver?? v1.6.0?????????????????????????????????????????????????? 76e2034???? 7 days ago????? 225MB

View mirror

[[email protected] harbor]# docker imagesrepository??????????????????????? TAG???????? IMAGE ID?????? CREATED?????? Sizenginx??????????????????? Latest???????????? 7 days ago. v0.7.1-v1.6.0??? b67537c8726d 7 days ago????????????????????. 7 Day S ago????? 803mbgoharbor/redis-photon????? v1.6.0???????????? 7 days ago. v2.0.5-v1.6.0??? 3c5c2968147d???? 7 days ago????? 309mbgoharbor/notary-server-photon? v0.5.1-v1.6.0??? 4dd7df4ad4b6???? 7 days ago????? 215mbgoharbor/notary-signer-photon? v0.5.1-v1.6.0??? 78decf4dc4d9????? 7 days ago????? 98bf341403a5 7 days ago????? 201mbgoharbor/nginx-photon.???? v1.6.0???????????? 7 days ago 138mbgoharbor/harbor-log???????????? v1.6.0???????????. 7 days ago??????????????????????????????????  9ce10be 7 days ago????????????????????. 7 days ago ????? 221mbgoharbor/harbor-adminserver?? v1.6.0?????????????????????????????????????????????????? 76e2034???? 7 days ago????? 225MB

Mirror Marking

[[email protected] harbor]# docker tag 06144b287844 172.16.8.46/qas/nginx:latest[[email protected] Harbor] # Docker imagesrepository??????????? TAG???????? IMAGE ID?????? CREATED?????? Size172.16.8.46/qas/nginx????? Latest???????????????????????????????????????????????????? Latest???????????? 7 days ago. v0.7.1-v1.6.0??? b67537c8726d 7 days ago????????????????????. 7 Day S ago????? 803mbgoharbor/redis-photon????? v1.6.0???????????? 7 days ago. v2.0.5-v1.6.0??? 3c5c2968147d???? 7 days ago????? 309mbgoharbor/notary-server-photon? v0.5.1-v1.6.0??? 4dd7df4ad4b6???? 7 days ago????? 215mbgoharbor/notary-signer-photon? v0.5.1-v1.6.0??? 78decf4dc4d9???? 7 days ago????? 212mbgoharbor/registry-photon???? v2.6.2-v1.6.0.??? 98bf341403a5 7 days ago????? 201mbgoharbor/nginx-photon.???? v1.6.0????????????? 7 days ago????????????? v1.6.0???????????. 7 days ago??????????????????????????????????  9ce10be 7 days ago????????????????????. 7 days ago ????? 221mbgoharbor/harbor-adminserver?? v1.6.0?????????????????????????????????????????????????? 76e2034???? 7 days ago????? 225MB

Log in to harbor Warehouse

[[email protected] harbor]# docker login 172.16.8.46 -uadmin -pHarbor12345WARNING! Using --password via the CLI is insecure. Use --password-stdin.Login Succeeded

Upload image to harbor Warehouse

[[email protected] harbor]# docker push 172.16.8.46/qas/nginx:latestThe push refers to repository [172.16.8.46/qas/nginx]579c75bb43c0: Pushed?67d3ae5dfa34: Pushed?8b15606a9e3e: Pushed?latest: digest: sha256:c0b69559d28fb325a64c6c8f47d14c26b95aa047312b29c699da10380e90b4d7 size: 948

Centos 7.x Deployment Harbor Mirrored Warehouse

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.