电脑知识|欧美黑人一区二区三区|软件|欧美黑人一级爽快片淫片高清|系统|欧美黑人狂野猛交老妇|数据库|服务器|编程开发|网络运营|知识问答|技术教程文章 - 好吧啦网

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

瀏覽:166日期:2024-10-25 18:55:26

Harbor是一個(gè)用于存儲(chǔ)和分發(fā)Docker鏡像的企業(yè)級(jí)Registry服務(wù)器,可以用來構(gòu)建企業(yè)內(nèi)部的Docker鏡像倉(cāng)庫(kù)。它在Docker的開源項(xiàng)目 Distribution的基礎(chǔ)上,添加了一些企業(yè)需要的功能特性,如鏡像同步復(fù)制、漏洞掃描和權(quán)限管理等。Harbor是由VMware公司開源的企業(yè)級(jí)的Docker Registry管理項(xiàng)目,它包括權(quán)限管理(RBAC)、LDAP、日志審核、管理界面、自我注冊(cè)、鏡像復(fù)制和中文支持等功能。

搭建一個(gè)全功能的倉(cāng)庫(kù),且支持匿名拉取

[root@server1 mnt]# cd compose/[root@server1 compose]# lsdocker-compose-Linux-x86_64-1.16.1 docker-compose-Linux-x86_64-1.24.1docker-compose-Linux-x86_64-1.22.0 docker-compose-Linux-x86_64-1.27.0[root@server1 compose]# mv docker-compose-Linux-x86_64-1.27.0 /usr/local/bin/docker-compose[root@server1 compose]# chmod +x /usr/local/bin/docker-compose

[root@server1 mnt]# tar zxf harbor-offline-installer-v1.10.1.tgz

解決依賴性,解壓harbor

vim harbor.yml

在harbor的目錄中

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

認(rèn)證和密鑰的位置一定要寫對(duì)

./install.sh

執(zhí)行腳本安裝

Creating redis ... doneCreating harbor-core ... doneCreating nginx ... doneCreating harbor-jobservice ... done✔ ----Harbor has been installed and started successfully.----

done

[root@server1 harbor]# docker-compose

docker-compose命令一定要在harbor目錄中執(zhí)行

[root@server1 harbor]# docker-compose start

[root@server1 harbor]# docker-compose ps Name Command StatePorts --------------------------------------------------------------------------------------------------------------------------------------------harbor-core /harbor/harbor_core Up (healthy) harbor-db /docker-entrypoint.sh Up (healthy) 5432/tcp harbor-jobservice /harbor/harbor_jobservice ... Up (healthy) harbor-log /bin/sh -c /usr/local/bin/ ... Up (healthy) 127.0.0.1:1514->10514/tcp harbor-portal nginx -g daemon off; Up (healthy) 8080/tcp nginx nginx -g daemon off; Up (healthy) 0.0.0.0:80->8080/tcp,:::80->8080/tcp, 0.0.0.0:443->8443/tcp,:::443->8443/tcp redis redis-server /etc/redis.conf Up (healthy) 6379/tcp registry /home/harbor/entrypoint.sh Up (healthy) 5000/tcp registryctl /home/harbor/start.sh Up (healthy)

確保鏡像都是up的狀態(tài)直接在瀏覽器輸入IP地址

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

用戶admin,密碼yume

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

[root@server1 docker]# docker logout reg.westos.orgRemoving login credentials for reg.westos.org[root@server1 docker]# docker login reg.westos.orgUsername: adminPassword: WARNING! Your password will be stored unencrypted in /root/.docker/config.json.Configure a credential helper to remove this warning. Seehttps://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded

退出之前的登錄,重新登錄這是在數(shù)據(jù)庫(kù)里保存的信息。并非之前自己在本地創(chuàng)建的

[root@server1 docker]# docker tag yakexi007/game2048:latest reg.westos.org/library/game2048:latest[root@server1 docker]# docker push reg.westos.org/library/game2048:latest The push refers to repository [reg.westos.org/library/game2048]88fca8ae768a: Pushed 6d7504772167: Pushed 192e9fad2abc: Pushed 36e9226e74f8: Pushed 011b303988d2: Pushed latest: digest: sha256:8a34fb9cb168c420604b6e5d32ca6d412cb0d533a826b313b190535c03fe9390 size: 1364

給倉(cāng)庫(kù)上傳,查看

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

[root@server2 docker]# cat daemon.json { 'registry-mirrors': ['https://reg.westos.org']}

server2中,已經(jīng)指向了私有倉(cāng)庫(kù)

Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Registry Mirrors: https://reg.westos.org/ Live Restore Enabled: false

且是生效的在server2中做地址解析

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

[root@server2 docker]# docker pull reg.westos.org/library/game2048:latestlatest: Pulling from library/game2048534e72e7cedc: Pull complete f62e2f6dfeef: Pull complete fe7db6293242: Pull complete 3f120f6a2bf8: Pull complete 4ba4e6930ea5: Pull complete Digest: sha256:8a34fb9cb168c420604b6e5d32ca6d412cb0d533a826b313b190535c03fe9390Status: Downloaded newer image for reg.westos.org/library/game2048:latestreg.westos.org/library/game2048:latest

把server1push出去的鏡像在server2pull下來成功

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

日志中可以看到,匿名用戶進(jìn)行了拉取

[root@server1 docker]# docker tag yakexi007/nginx:latest reg.westos.org/library/nginx:latest[root@server1 docker]# docker push reg.westos.org/library/nginxThe push refers to repository [reg.westos.org/library/nginx]3bd8699f28ba: Pushed 1d3b68b6972f: Pushed de1602ca36c9: Pushed latest: digest: sha256:5ea5a786e978abd8e6e0b6c0f37f7271be19c40d6b8247b1d9dae70c1fbab9eb size: 949

server1中再次上傳一個(gè)nginx鏡像

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

可以查看到

[root@server2 docker]# docker pull nginxUsing default tag: latestlatest: Pulling from library/nginxcfb92865f5ba: Pull complete 8dd350b5e0d5: Pull complete 15157df2751c: Pull complete Digest: sha256:5ea5a786e978abd8e6e0b6c0f37f7271be19c40d6b8247b1d9dae70c1fbab9ebStatus: Downloaded newer image for nginx:latestdocker.io/library/nginx:latest

server2再次拉取nginx,done2.使用harbor倉(cāng)庫(kù),一些基本的指令

[root@server1 harbor]# docker-compose logs

查看日志

[root@server1 harbor]# docker-compose stop

停用倉(cāng)庫(kù)3.維護(hù)倉(cāng)庫(kù)(添加倉(cāng)庫(kù)模塊:自動(dòng)掃描鏡像、簽名功能)先停掉倉(cāng)庫(kù)stop

[root@server1 harbor]# docker-compose rm

刪除所有的容器接下來,添加harbor的功能查看安裝腳本的help,可以看到3個(gè)模塊:鏡像漏洞掃描,內(nèi)容信任,遠(yuǎn)程登陸在安裝腳本后面加上模塊名稱,重新安裝后,會(huì)開啟這些模塊功能

[root@server1 harbor]# ./install.sh --helpNote: Please set hostname and other necessary attributes in harbor.yml first. DO NOT use localhost or 127.0.0.1 for hostname, because Harbor needs to be accessed by external clients.Please set --with-notary if needs enable Notary in Harbor, and set ui_url_protocol/ssl_cert/ssl_cert_key in harbor.yml bacause notary must run under https. Please set --with-clair if needs enable Clair in HarborPlease set --with-chartmuseum if needs enable Chartmuseum in Harbor

[root@server1 harbor]# ./install.sh --with-notary --with-clair --with-chartmuseum

[Step 5]: starting Harbor ...Creating network 'harbor_harbor-clair' with the default driverCreating network 'harbor_harbor-notary' with the default driverCreating network 'harbor_harbor-chartmuseum' with the default driverCreating network 'harbor_notary-sig' with the default driverCreating harbor-log ... doneCreating registry ... doneCreating harbor-db ... doneCreating registryctl ... doneCreating redis ... doneCreating chartmuseum ... doneCreating harbor-portal ... doneCreating harbor-core ... doneCreating notary-signer ... doneCreating clair ... doneCreating clair-adapter ... doneCreating notary-server ... doneCreating nginx ... doneCreating harbor-jobservice ... done✔ ----Harbor has been installed and started successfully.----

[root@server1 harbor]# docker-compose ps Name Command StatePorts --------------------------------------------------------------------------------------------------------------------------------------------chartmuseum ./docker-entrypoint.sh Up (health: starting) 9999/tcp clair ./docker-entrypoint.sh Up (health: starting) 6060/tcp, 6061/tcp clair-adapter /clair-adapter/clair-adapter Up (health: starting) 8080/tcp harbor-core /harbor/harbor_core Up (health: starting) harbor-db /docker-entrypoint.sh Up (health: starting) 5432/tcp harbor-jobservice /harbor/harbor_jobservice ... Up (health: starting) harbor-log /bin/sh -c /usr/local/bin/ ... Up (health: starting) 127.0.0.1:1514->10514/tcp harbor-portal nginx -g daemon off; Up (health: starting) 8080/tcp nginx nginx -g daemon off; Up (health: starting) 0.0.0.0:4443->4443/tcp,:::4443->4443/tcp, 0.0.0.0:80->8080/tcp,:::80->8080/tcp, 0.0.0.0:443->8443/tcp,:::443->8443/tcp notary-server /bin/sh -c migrate-patch - ... Up notary-signer /bin/sh -c migrate-patch - ... Up redis redis-server /etc/redis.conf Up (health: starting) 6379/tcp registry /home/harbor/entrypoint.sh Up (health: starting) 5000/tcp registryctl /home/harbor/start.sh Up (health: starting)

用ps查看,會(huì)發(fā)現(xiàn)多了一些功能登錄172.25.250.11

docker5 全功能harbor倉(cāng)庫(kù)搭建過程docker5 全功能harbor倉(cāng)庫(kù)搭建過程

這些都是重新安裝前沒有的

?with-notary --with-clair --with-chartmuseum分別是內(nèi)容信任,鏡像掃描和charts庫(kù)在瀏覽器查看鏡像的信息此時(shí),可以看到鏡像后面都跟有掃描、簽名等信息因?yàn)椋渲眠@個(gè)目錄時(shí),沒有開啟鏡像掃描和簽名功能,所以,當(dāng)前顯示鏡像是無掃描和無簽名的

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

如何自動(dòng)掃描鏡像?

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

選中記得保存嘗試一下,重新上傳一個(gè)鏡像試試

[root@server1 harbor]# docker tag rhel7:latest reg.westos.org/library/rhel7:latest

這次用rhel7的鏡像,先改一個(gè)名字

[root@server1 harbor]# docker push reg.westos.org/library/rhel7:latest The push refers to repository [reg.westos.org/library/rhel7]18af9eb19b5f: Pushed latest: digest: sha256:58cd9120a4194edb0de4377b71bd564953255a1422baa1bbd9cb23d521c6873b size: 528

上傳到harbor

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

當(dāng)打開瀏覽器時(shí),發(fā)現(xiàn)已經(jīng)自動(dòng)掃描過了

如何實(shí)現(xiàn)鏡像簽名功能?

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

當(dāng)選中了內(nèi)容信任,此時(shí)在server2嘗試?yán)偛派蟼鞯膔hel7鏡像

[root@server2 ~]# docker pull rhel7Using default tag: latestError response from daemon: pull access denied for rhel7, repository does not exist or may require ’docker login’: denied: requested access to the resource is denied

如果取消選中內(nèi)容信任就可以正常拉取因?yàn)閭}(cāng)庫(kù)開啟了內(nèi)容信任功能,客戶端只能下載具有簽名的鏡像,而現(xiàn)在倉(cāng)庫(kù)中的debian鏡像沒有簽名,因此,客戶端拉取失敗。雖然拉取harbor倉(cāng)庫(kù)失敗,但是,系統(tǒng)會(huì)自動(dòng)到互聯(lián)網(wǎng)上去拉取鏡像(現(xiàn)在處于未聯(lián)網(wǎng)的環(huán)境,所以,出現(xiàn)以上錯(cuò)誤)

現(xiàn)在要給信任的鏡像簽名授權(quán)先在Web界面刪除之前上傳的,沒有簽名的鏡像在Docker的服務(wù)端設(shè)置2個(gè)環(huán)境變量,即可使用內(nèi)容信任功能為上傳的鏡像進(jìn)行簽名(1)部署根證書

[root@server1 harbor]# docker-compose ps Name Command StatePorts --------------------------------------------------------------------------------------------------------------------------------------------chartmuseum ./docker-entrypoint.sh Up (healthy) 9999/tcp clair ./docker-entrypoint.sh Up (healthy) 6060/tcp, 6061/tcp clair-adapter /clair-adapter/clair-adapter Up (healthy) 8080/tcp harbor-core /harbor/harbor_core Up (healthy) harbor-db /docker-entrypoint.sh Up (healthy) 5432/tcp harbor-jobservice /harbor/harbor_jobservice ... Up (healthy) harbor-log /bin/sh -c /usr/local/bin/ ... Up (healthy) 127.0.0.1:1514->10514/tcp harbor-portal nginx -g daemon off; Up (healthy) 8080/tcp nginx nginx -g daemon off; Up (healthy) 0.0.0.0:4443->4443/tcp,:::4443->4443/tcp, 0.0.0.0:80->8080/tcp,:::80->8080/tcp, 0.0.0.0:443->8443/tcp,:::443->8443/tcp notary-server /bin/sh -c migrate-patch - ... Up notary-signer /bin/sh -c migrate-patch - ... Up redis redis-server /etc/redis.conf Up (healthy) 6379/tcp registry /home/harbor/entrypoint.sh Up (healthy) 5000/tcp registryctl /home/harbor/start.sh Up (healthy)

4443端口就是用來簽名的

[root@server1 harbor]# export DOCKER_CONTENT_TRUST=1[root@server1 harbor]# export DOCKER_CONTENT_TRUST_SERVER=https://reg.westos.org:4443

(2)啟用docker內(nèi)容信任

[root@server1 harbor]# docker push reg.westos.org/library/nginx:latestThe push refers to repository [reg.westos.org/library/nginx]3bd8699f28ba: Layer already exists 1d3b68b6972f: Layer already exists de1602ca36c9: Layer already exists latest: digest: sha256:5ea5a786e978abd8e6e0b6c0f37f7271be19c40d6b8247b1d9dae70c1fbab9eb size: 949Signing and pushing trust metadataError: error contacting notary server: x509: certificate signed by unknown authority

latest一定要加,這表明了版本的更新(3)重新上傳報(bào)錯(cuò)了,沒有證書在隱藏目錄.docker中,創(chuàng)建證書目錄tls,進(jìn)入該目錄后,創(chuàng)建和容器名稱相同的目錄reg.westos.org:4443。復(fù)制之前生成好的證書到該目錄中

[root@server1 ~]# cd .docker/[root@server1 .docker]# lsconfig.json trust[root@server1 .docker]# mkdir tls[root@server1 .docker]# cd tls/[root@server1 tls]# mkdir reg.westos.org:4443[root@server1 tls]# cd reg.westos.org:4443/[root@server1 reg.westos.org:4443]# cp /docker /.autorelabel data/ etc/ lib64/opt/ run/ sys/ var/ bin/ dev/ home/ media/proc/ sbin/ tmp/ boot/ dockerlib/ mnt/ root/ srv/ usr/ [root@server1 reg.westos.org:4443]# cp /root/data/certs/westos.org.crt ca.crt[root@server1 reg.westos.org:4443]# lsca.crt

(4)重新上傳試試

[root@server1 harbor]# docker push reg.westos.org/library/nginx:latest The push refers to repository [reg.westos.org/library/nginx]3bd8699f28ba: Layer already exists 1d3b68b6972f: Layer already exists de1602ca36c9: Layer already exists latest: digest: sha256:5ea5a786e978abd8e6e0b6c0f37f7271be19c40d6b8247b1d9dae70c1fbab9eb size: 949Signing and pushing trust metadataYou are about to create a new root signing key passphrase. This passphrasewill be used to protect the most sensitive key in your signing system. Pleasechoose a long, complex passphrase and be careful to keep the password and thekey file itself secure and backed up. It is highly recommended that you use apassword manager to generate the passphrase and keep it safe. There will be noway to recover this key. You can find the key in your config directory.Enter passphrase for new root key with ID dbac0cb: Passphrase is too short. Please use a password manager to generate and store a good random passphrase.Enter passphrase for new root key with ID dbac0cb: Passphrase is too short. Please use a password manager to generate and store a good random passphrase.Enter passphrase for new root key with ID dbac0cb: Passphrase is too short. Please use a password manager to generate and store a good random passphrase.Enter passphrase for new root key with ID dbac0cb: Passphrase is too short. Please use a password manager to generate and store a good random passphrase.Enter passphrase for new root key with ID dbac0cb: Repeat passphrase for new root key with ID dbac0cb: Enter passphrase for new repository key with ID a868e96: Repeat passphrase for new repository key with ID a868e96: Finished initializing 'reg.westos.org/library/nginx'Successfully signed reg.westos.org/library/nginx:latest

解決問題之后,服務(wù)端再去上傳鏡像,成功上傳新的鏡像,需要管理員設(shè)置根key和倉(cāng)庫(kù)key(注意,每次上傳鏡像的不同版本時(shí),只需要輸入對(duì)應(yīng)的倉(cāng)庫(kù)key,不需要輸入根key)設(shè)定好之后,去Web界面查看,發(fā)現(xiàn)上傳的鏡像的簽名處顯示成功

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

已簽名,一定要加latest

[root@server2 ~]# docker pull nginxUsing default tag: latestlatest: Pulling from library/nginxcfb92865f5ba: Pull complete 8dd350b5e0d5: Pull complete 15157df2751c: Pull complete Digest: sha256:5ea5a786e978abd8e6e0b6c0f37f7271be19c40d6b8247b1d9dae70c1fbab9ebStatus: Downloaded newer image for nginx:latestdocker.io/library/nginx:latest

在server2拉取已簽名的鏡像沒有問題,如果未簽名還開啟了內(nèi)容信任,就還是不行再次試試可行性,把2048先從harbor刪掉,然后server2也刪除之前下載的2048鏡像,重新拉取,報(bào)錯(cuò)

[root@server2 ~]# docker pull game2048Using default tag: latestError response from daemon: pull access denied for game2048, repository does not exist or may require ’docker login’: denied: requested access to the resource is denied

然后server1重新push2048

[root@server1 harbor]# docker push reg.westos.org/library/game2048:latest The push refers to repository [reg.westos.org/library/game2048]88fca8ae768a: Layer already exists 6d7504772167: Layer already exists 192e9fad2abc: Layer already exists 36e9226e74f8: Layer already exists 011b303988d2: Layer already exists latest: digest: sha256:8a34fb9cb168c420604b6e5d32ca6d412cb0d533a826b313b190535c03fe9390 size: 1364Signing and pushing trust metadataEnter passphrase for root key with ID dbac0cb: Enter passphrase for new repository key with ID 18c8514: Repeat passphrase for new repository key with ID 18c8514: Finished initializing 'reg.westos.org/library/game2048'Successfully signed reg.westos.org/library/game2048:latest

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

已經(jīng)簽名,此時(shí)server2再次pull

[root@server2 ~]# docker pull game2048Using default tag: latestlatest: Pulling from library/game2048534e72e7cedc: Pull complete f62e2f6dfeef: Pull complete fe7db6293242: Pull complete 3f120f6a2bf8: Pull complete 4ba4e6930ea5: Pull complete Digest: sha256:8a34fb9cb168c420604b6e5d32ca6d412cb0d533a826b313b190535c03fe9390Status: Downloaded newer image for game2048:latestdocker.io/library/game2048:latest

done

4.guest用戶訪問未公開倉(cāng)庫(kù)(1)新建一個(gè)項(xiàng)目

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

[root@server1 harbor]# export DOCKER_CONTENT_TRUST=0

把內(nèi)容信任關(guān)閉掉,不然會(huì)麻煩

[root@server1 harbor]# docker tag reg.westos.org/library/game2048:latest reg.westos.org/haoge/game2048:latest

[root@server1 harbor]# docker push reg.westos.org/haoge/game2048

給haoge這個(gè)新項(xiàng)目重新上傳一個(gè)2048鏡像

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

[root@server2 ~]# docker pull reg.westos.org/haoge/game2048:latestError response from daemon: pull access denied for reg.westos.org/haoge/game2048, repository does not exist or may require ’docker login’: denied: requested access to the resource is denied

server2拉取haoge下的2048,報(bào)錯(cuò)了,需要login

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

新建一個(gè)用戶

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

在haoge項(xiàng)目里把wqh這個(gè)用戶給一個(gè)訪客身份

[root@server2 ~]# docker login reg.westos.orgUsername: wqhPassword: WARNING! Your password will be stored unencrypted in /root/.docker/config.json.Configure a credential helper to remove this warning. Seehttps://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded

server2登錄wqh再次拉取

[root@server2 ~]# docker pull reg.westos.org/haoge/game2048:latestlatest: Pulling from haoge/game2048Digest: sha256:8a34fb9cb168c420604b6e5d32ca6d412cb0d533a826b313b190535c03fe9390Status: Downloaded newer image for reg.westos.org/haoge/game2048:latestreg.westos.org/haoge/game2048:latest[root@server2 ~]# docker images REPOSITORY TAG IMAGE ID CREATED SIZEnginx latest 2560dbd4ee1e 14 months ago 31.1MBgame2048latest 19299002fdbe 4 years ago 55.5MBreg.westos.org/haoge/game2048 latest 19299002fdbe 4 years ago 55.5MB

沒問題但是push是不可以的,因?yàn)樵L客是沒有權(quán)限的

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

日志可以看到剛才wqh拉去了一個(gè)鏡像最后:去掉鏡像掃描和簽名功能,這些加快磁盤的消耗(掃描加快磁盤的消耗)(之后的實(shí)驗(yàn)不需要鏡像掃描和簽名)

[root@server1 harbor]# docker-compose stopStopping harbor-jobservice ... doneStopping nginx ... doneStopping notary-server ... doneStopping clair-adapter ... doneStopping notary-signer ... doneStopping clair ... doneStopping harbor-core ... doneStopping chartmuseum ... doneStopping harbor-portal ... doneStopping redis ... doneStopping registryctl ... doneStopping harbor-db ... doneStopping registry ... doneStopping harbor-log... done[root@server1 harbor]# docker-compose rmGoing to remove harbor-jobservice, nginx, notary-server, clair-adapter, notary-signer, clair, harbor-core, chartmuseum, harbor-portal, redis, registryctl, harbor-db, registry, harbor-logAre you sure? [yN] yRemoving harbor-jobservice ... doneRemoving nginx ... doneRemoving notary-server ... doneRemoving clair-adapter ... doneRemoving notary-signer ... doneRemoving clair ... doneRemoving harbor-core ... doneRemoving chartmuseum ... doneRemoving harbor-portal ... doneRemoving redis ... doneRemoving registryctl ... doneRemoving harbor-db ... doneRemoving registry ... doneRemoving harbor-log... done[root@server1 harbor]# ./install.sh --with-chartmuseum [Step 0]: checking if docker is installed ...Note: docker version: 19.03.15[Step 1]: checking docker-compose is installed ...Note: docker-compose version: 1.27.0[Step 2]: loading Harbor images ...Loaded image: goharbor/clair-adapter-photon:v1.0.1-v1.10.1Loaded image: goharbor/harbor-jobservice:v1.10.1Loaded image: goharbor/redis-photon:v1.10.1Loaded image: goharbor/notary-server-photon:v0.6.1-v1.10.1Loaded image: goharbor/clair-photon:v2.1.1-v1.10.1Loaded image: goharbor/harbor-log:v1.10.1Loaded image: goharbor/registry-photon:v2.7.1-patch-2819-2553-v1.10.1Loaded image: goharbor/notary-signer-photon:v0.6.1-v1.10.1Loaded image: goharbor/chartmuseum-photon:v0.9.0-v1.10.1Loaded image: goharbor/harbor-registryctl:v1.10.1Loaded image: goharbor/nginx-photon:v1.10.1Loaded image: goharbor/harbor-migrator:v1.10.1Loaded image: goharbor/prepare:v1.10.1Loaded image: goharbor/harbor-portal:v1.10.1Loaded image: goharbor/harbor-core:v1.10.1Loaded image: goharbor/harbor-db:v1.10.1[Step 3]: preparing environment ...[Step 4]: preparing harbor configs ...prepare base dir is set to /mnt/harborClearing the configuration file: /config/log/logrotate.confClearing the configuration file: /config/log/rsyslog_docker.confClearing the configuration file: /config/nginx/conf.d/notary.upstream.confClearing the configuration file: /config/nginx/conf.d/notary.server.confClearing the configuration file: /config/nginx/nginx.confClearing the configuration file: /config/core/envClearing the configuration file: /config/core/app.confClearing the configuration file: /config/registry/config.ymlClearing the configuration file: /config/registry/root.crtClearing the configuration file: /config/registryctl/envClearing the configuration file: /config/registryctl/config.ymlClearing the configuration file: /config/db/envClearing the configuration file: /config/jobservice/envClearing the configuration file: /config/jobservice/config.ymlClearing the configuration file: /config/notary/server-config.postgres.jsonClearing the configuration file: /config/notary/server_envClearing the configuration file: /config/notary/signer_envClearing the configuration file: /config/notary/signer-config.postgres.jsonClearing the configuration file: /config/notary/notary-signer.keyClearing the configuration file: /config/notary/notary-signer.crtClearing the configuration file: /config/notary/notary-signer-ca.crtClearing the configuration file: /config/notary/root.crtClearing the configuration file: /config/clair/postgresql-init.d/README.mdClearing the configuration file: /config/clair/postgres_envClearing the configuration file: /config/clair/config.yamlClearing the configuration file: /config/clair/clair_envClearing the configuration file: /config/clair-adapter/envClearing the configuration file: /config/chartserver/envGenerated configuration file: /config/log/logrotate.confGenerated configuration file: /config/log/rsyslog_docker.confGenerated configuration file: /config/nginx/nginx.confGenerated configuration file: /config/core/envGenerated configuration file: /config/core/app.confGenerated configuration file: /config/registry/config.ymlGenerated configuration file: /config/registryctl/envGenerated configuration file: /config/db/envGenerated configuration file: /config/jobservice/envGenerated configuration file: /config/jobservice/config.ymlloaded secret from file: /secret/keys/secretkeyGenerated configuration file: /config/chartserver/envGenerated configuration file: /compose_location/docker-compose.ymlClean up the input dir[Step 5]: starting Harbor ...Creating harbor-log ... doneCreating harbor-portal ... doneCreating registryctl ... doneCreating harbor-db ... doneCreating redis ... doneCreating registry ... doneCreating chartmuseum ... doneCreating harbor-core ... doneCreating nginx ... doneCreating harbor-jobservice ... done✔ ----Harbor has been installed and started successfully.----[root@server1 harbor]# docker-compose ps Name Command StatePorts --------------------------------------------------------------------------------------------------------------------------------------------chartmuseum ./docker-entrypoint.sh Up (health: starting) 9999/tcp harbor-core /harbor/harbor_core Up (health: starting) harbor-db /docker-entrypoint.sh Up (health: starting) 5432/tcp harbor-jobservice /harbor/harbor_jobservice ... Up (health: starting) harbor-log /bin/sh -c /usr/local/bin/ ... Up (health: starting) 127.0.0.1:1514->10514/tcp harbor-portal nginx -g daemon off; Up (health: starting) 8080/tcp nginx nginx -g daemon off; Up (health: starting) 0.0.0.0:80->8080/tcp,:::80->8080/tcp, 0.0.0.0:443->8443/tcp,:::443->8443/tcp redis redis-server /etc/redis.conf Up (health: starting) 6379/tcp registry /home/harbor/entrypoint.sh Up (health: starting) 5000/tcp registryctl /home/harbor/start.sh Up (health: starting)

docker5 全功能harbor倉(cāng)庫(kù)搭建過程

最終效果

以上就是docker5 全功能harbor的詳細(xì)內(nèi)容,更多關(guān)于docker harbor的資料請(qǐng)關(guān)注好吧啦網(wǎng)其它相關(guān)文章!

標(biāo)簽: Docker
相關(guān)文章:
主站蜘蛛池模板: 曙光腾达官网-天津脚手架租赁-木板架出租-移动门式脚手架租赁「免费搭设」 | 吸音板,隔音板,吸音材料,吸音板价格,声学材料 - 佛山诺声吸音板厂家 | PC构件-PC预制构件-构件设计-建筑预制构件-PC构件厂-锦萧新材料科技(浙江)股份有限公司 | 企典软件一站式企业管理平台,可私有、本地化部署!在线CRM客户关系管理系统|移动办公OA管理系统|HR人事管理系统|人力 | 有机废气处理-rto焚烧炉-催化燃烧设备-VOC冷凝回收装置-三梯环境 | 小型气象站_便携式自动气象站_校园气象站-竞道气象设备网 | 手机存放柜,超市储物柜,电子储物柜,自动寄存柜,行李寄存柜,自动存包柜,条码存包柜-上海天琪实业有限公司 | 手持式线材张力计-套帽式风量罩-深圳市欧亚精密仪器有限公司 | 电动车头盔厂家_赠品头盔_安全帽批发_山东摩托车头盔—临沂承福头盔 | 吊篮式|移动式冷热冲击试验箱-二槽冷热冲击试验箱-广东科宝 | 武汉画册印刷厂家-企业画册印刷-画册设计印刷制作-宣传画册印刷公司 - 武汉泽雅印刷厂 | LINK FASHION 童装·青少年装展| 发光字|标识设计|标牌制作|精神堡垒 - 江苏苏通广告有限公司 | 展厅设计-展馆设计-专业企业展厅展馆设计公司-昆明华文创意 | 万博士范文网-您身边的范文参考网站Vanbs.com | 超声波焊接机,振动摩擦焊接机,激光塑料焊接机,超声波焊接模具工装-德召尼克(常州)焊接科技有限公司 | 精密机械零件加工_CNC加工_精密加工_数控车床加工_精密机械加工_机械零部件加工厂 | 汝成内控-行政事业单位内部控制管理服务商 | 尊享蟹太太美味,大闸蟹礼卡|礼券|礼盒在线预订-蟹太太官网 | 超声波流量计_流量标准装置生产厂家 _河南盛天精密测控 | 工业雾炮机_超细雾炮_远程抑尘射雾器-世纪润德环保设备 | 高铝砖-高铝耐火球-高铝耐火砖生产厂家-价格【荣盛耐材】 | 针焰试验仪,灼热丝试验仪,漏电起痕试验仪,水平垂直燃烧试验仪 - 苏州亚诺天下仪器有限公司 | 仿古瓦,仿古金属瓦,铝瓦,铜瓦,铝合金瓦-西安东申景观艺术工程有限公司 | 雷达液位计_超声波风速风向仪_雨量传感器_辐射传感器-山东风途物联网 | 考勤系统_考勤管理系统_网络考勤软件_政企|集团|工厂复杂考勤工时统计排班管理系统_天时考勤 | 志高装潢官网-苏州老房旧房装修改造-二手房装修翻新 | 海鲜池-专注海鲜鱼缸、移动海鲜缸、饭店鱼缸设计定做-日晟水族厂家 | 双工位钻铣攻牙机-转换工作台钻攻中心-钻铣攻牙机一体机-浙江利硕自动化设备有限公司 | 滚塑PE壳体-PE塑料浮球-警示PE浮筒-宁波君益塑业有限公司 | 大流量卧式砂磨机_强力分散机_双行星双动力混合机_同心双轴搅拌机-莱州市龙跃化工机械有限公司 | 上海盐水喷雾试验机_两厢式冷热冲击试验箱-巨怡环试 | 红酒招商加盟-葡萄酒加盟-进口红酒代理-青岛枞木酒业有限公司 | 回收二手冲床_金丰旧冲床回收_协易冲床回收 - 大鑫机械设备 | 美缝剂_美缝剂厂家_美缝剂加盟-地老板高端瓷砖美缝剂 | 包塑软管|金属软管|包塑金属软管-闵彬管业 | 隔爆型防爆端子分线箱_防爆空气开关箱|依客思 | 南方珠江-南方一线电缆-南方珠江科技电缆-南方珠江科技有限公司 南汇8424西瓜_南汇玉菇甜瓜-南汇水蜜桃价格 | 影视模板素材_原创专业影视实拍视频素材-8k像素素材网 | 砂尘试验箱_淋雨试验房_冰水冲击试验箱_IPX9K淋雨试验箱_广州岳信试验设备有限公司 | 火锅底料批发-串串香技术培训[川禾川调官网] |