搭建vmware-harbor 私有仓库管理系统

docker实在是太慢了,其他厂商的docker仓库服务,网址太难记了,所以还不如自己建一个。

1、下载harbor 完整包

https://github.com/goharbor/harbor/releases/download/v1.10.6/harbor-offline-installer-v1.10.6.tgz
tar xvf harbor-offline-installer-v1.10.6.tgz

2、修改harbor目录下的harbor.yml

#修改对应的hostname
hostname: docker.foxi.buduanwang.vip
# 修改好对应的端口和证书
https:
  port: 7443
  certificate: /docker/ssl/full_chain.pem
  private_key:  /docker/ssl/private.key
#配置admin用户密码
harbor_admin_password:  passwd
# 配置好储存位置
data_volume: /var/docker

3、开始运行

./isntall.sh
root@foxi:/home/foxi/harbor# ./install.sh

[Step 0]: checking if docker is installed ...

Note: docker version: 19.03.8

[Step 1]: checking docker-compose is installed ...

Note: docker-compose version: 1.27.4

[Step 2]: loading Harbor images ...
517216c3ed59: Loading layer [==================================================>]   34.5MB/34.5MB
b9984883b90b: Loading layer [==================================================>]  331.5MB/331.5MB
979e8823fd48: Loading layer [==================================================>]  135.2kB/135.2kB
Loaded image: goharbor/harbor-migrator:v1.10.6
9af36121a2d3: Loading layer [==================================================>]  12.29MB/12.29MB
7469a23fd831: Loading layer [==================================================>]  42.51MB/42.51MB
78b8a6419717: Loading layer [==================================================>]  5.632kB/5.632kB
d82d965b4ef8: Loading layer [==================================================>]  40.45kB/40.45kB
df344cc92b3d: Loading layer [==================================================>]  42.51MB/42.51MB
986058fa362a: Loading layer [==================================================>]   2.56kB/2.56kB
Loaded image: goharbor/harbor-core:v1.10.6
e57060edfa4f: Loading layer [==================================================>]  63.67MB/63.67MB
6b4f0118d2e7: Loading layer [==================================================>]  75.99MB/75.99MB
29a495a70a49: Loading layer [==================================================>]  5.632kB/5.632kB
79b703e7a4e5: Loading layer [==================================================>]   2.56kB/2.56kB
e867025af608: Loading layer [==================================================>]   2.56kB/2.56kB
808ee6ef9f3e: Loading layer [==================================================>]   2.56kB/2.56kB
9dd136dbdbb8: Loading layer [==================================================>]   2.56kB/2.56kB
07a93256363b: Loading layer [==================================================>]  10.75kB/10.75kB
Loaded image: goharbor/harbor-db:v1.10.6
d88d1d4c1e75: Loading layer [==================================================>]  8.515MB/8.515MB
4af0316b2679: Loading layer [==================================================>]  3.584kB/3.584kB
7ffcfabe0b2f: Loading layer [==================================================>]  20.51MB/20.51MB
b2c9e51892ed: Loading layer [==================================================>]  3.072kB/3.072kB
69f04e0492e5: Loading layer [==================================================>]  8.662MB/8.662MB
0befdda31216: Loading layer [==================================================>]  29.99MB/29.99MB
Loaded image: goharbor/harbor-registryctl:v1.10.6
0285f3f1d24f: Loading layer [==================================================>]  10.36MB/10.36MB
Loaded image: goharbor/nginx-photon:v1.10.6
d603a9558e8c: Loading layer [==================================================>]  115.4MB/115.4MB
b23664baab69: Loading layer [==================================================>]  12.15MB/12.15MB
e785164697c1: Loading layer [==================================================>]  3.072kB/3.072kB
ddc72a1554c7: Loading layer [==================================================>]  49.15kB/49.15kB
1bbe40c913b2: Loading layer [==================================================>]  3.584kB/3.584kB
8292a27c053f: Loading layer [==================================================>]  13.03MB/13.03MB
Loaded image: goharbor/clair-photon:v1.10.6
55cfd42af466: Loading layer [==================================================>]  8.515MB/8.515MB
2ef32a6672e4: Loading layer [==================================================>]   9.71MB/9.71MB
516c0b3f7b7d: Loading layer [==================================================>]   9.71MB/9.71MB
Loaded image: goharbor/clair-adapter-photon:v1.10.6
24717191d0eb: Loading layer [==================================================>]  10.36MB/10.36MB
e724890b1092: Loading layer [==================================================>]  7.697MB/7.697MB
a6186df96eea: Loading layer [==================================================>]  223.2kB/223.2kB
9dabcd61b9a2: Loading layer [==================================================>]  195.1kB/195.1kB
70a9eabcf0cf: Loading layer [==================================================>]  15.36kB/15.36kB
6327d3371dbe: Loading layer [==================================================>]  3.584kB/3.584kB
Loaded image: goharbor/harbor-portal:v1.10.6
cbb4f0baa930: Loading layer [==================================================>]  74.79MB/74.79MB
9cff4188aa57: Loading layer [==================================================>]  3.584kB/3.584kB
c2b996a82566: Loading layer [==================================================>]  3.072kB/3.072kB
9829c3787744: Loading layer [==================================================>]   2.56kB/2.56kB
67ddfe98d90a: Loading layer [==================================================>]  3.072kB/3.072kB
ff8b78cb63e7: Loading layer [==================================================>]  3.584kB/3.584kB
854dabac3758: Loading layer [==================================================>]  12.29kB/12.29kB
783d10970f24: Loading layer [==================================================>]  5.632kB/5.632kB
Loaded image: goharbor/harbor-log:v1.10.6
13fd12d41fea: Loading layer [==================================================>]  8.515MB/8.515MB
7f93018d3462: Loading layer [==================================================>]  3.584kB/3.584kB
59f5dbf0affb: Loading layer [==================================================>]  3.072kB/3.072kB
9311a8fa1514: Loading layer [==================================================>]  20.51MB/20.51MB
614eb395ab40: Loading layer [==================================================>]  21.33MB/21.33MB
Loaded image: goharbor/registry-photon:v1.10.6
57010d02c56f: Loading layer [==================================================>]  8.509MB/8.509MB
3742ae96b00e: Loading layer [==================================================>]  6.239MB/6.239MB
216c0af522f9: Loading layer [==================================================>]  14.43MB/14.43MB
09f6f8766ff3: Loading layer [==================================================>]  27.97MB/27.97MB
bffe3cc7a54c: Loading layer [==================================================>]  22.02kB/22.02kB
a60206e2897f: Loading layer [==================================================>]  48.64MB/48.64MB
Loaded image: goharbor/notary-signer-photon:v1.10.6
bbb3a4666fca: Loading layer [==================================================>]  12.29MB/12.29MB
3e7661db06ab: Loading layer [==================================================>]  49.38MB/49.38MB
Loaded image: goharbor/harbor-jobservice:v1.10.6
762f7fd02c27: Loading layer [==================================================>]  98.91MB/98.91MB
738675c5bb2a: Loading layer [==================================================>]  3.072kB/3.072kB
957f6ceb4893: Loading layer [==================================================>]   59.9kB/59.9kB
2ce8a82769c7: Loading layer [==================================================>]  61.95kB/61.95kB
Loaded image: goharbor/redis-photon:v1.10.6
842f97800f3d: Loading layer [==================================================>]  94.53MB/94.53MB
e0d5dfe658d5: Loading layer [==================================================>]  49.92MB/49.92MB
f2d4a8662d68: Loading layer [==================================================>]   2.56kB/2.56kB
5f622d209603: Loading layer [==================================================>]  1.536kB/1.536kB
01094f024495: Loading layer [==================================================>]  157.2kB/157.2kB
f1b9e5269785: Loading layer [==================================================>]  3.017MB/3.017MB
Loaded image: goharbor/prepare:v1.10.6
1f0f4177bbb7: Loading layer [==================================================>]  15.84MB/15.84MB
baf2ca0b445a: Loading layer [==================================================>]  27.97MB/27.97MB
515bf108ac7d: Loading layer [==================================================>]  22.02kB/22.02kB
c2146de85e39: Loading layer [==================================================>]  50.05MB/50.05MB
Loaded image: goharbor/notary-server-photon:v1.10.6
fe546267e7cd: Loading layer [==================================================>]  8.514MB/8.514MB
7de41eeff949: Loading layer [==================================================>]  67.49MB/67.49MB
3204c9160f30: Loading layer [==================================================>]  3.072kB/3.072kB
cb68e6e1c61e: Loading layer [==================================================>]  3.584kB/3.584kB
3b277bfd90f8: Loading layer [==================================================>]  68.32MB/68.32MB
Loaded image: goharbor/chartmuseum-photon:v1.10.6


[Step 3]: preparing environment ...

[Step 4]: preparing harbor configs ...
prepare base dir is set to /home/jiangcuo/harbor
Generated configuration file: /config/log/logrotate.conf
Generated configuration file: /config/log/rsyslog_docker.conf
Generated configuration file: /config/nginx/nginx.conf
Generated configuration file: /config/core/env
Generated configuration file: /config/core/app.conf
Generated configuration file: /config/registry/config.yml
Generated configuration file: /config/registryctl/env
Generated configuration file: /config/db/env
Generated configuration file: /config/jobservice/env
Generated configuration file: /config/jobservice/config.yml
Generated and saved secret to file: /secret/keys/secretkey
Generated certificate, key file: /secret/core/private_key.pem, cert file: /secret/registry/root.crt
Generated configuration file: /compose_location/docker-compose.yml
Clean up the input dir



[Step 5]: starting Harbor ...
Creating network "harbor_harbor" with the default driver
Creating harbor-log ... done
Creating redis      ...
Creating harbor-portal ...
Creating registryctl   ...
Creating registry      ... done
Creating redis         ... done
Creating harbor-portal ... done
Creating registryctl   ... done

安装成功之后,在目录下,会出现docker-compose.yml文件。以后要更改端口什么的。直接更改docekr-compose.yml就行

版权声明:
作者:佛西
链接:https://foxi.buduanwang.vip/linux/docker/670.html/
文章版权归作者所有,未经允许请勿转载
如需获得支持,请点击网页右上角
THE END
分享
二维码
海报
搭建vmware-harbor 私有仓库管理系统
docker实在是太慢了,其他厂商的docker仓库服务,网址太难记了,所以还不如自己建一个。
<<上一篇
下一篇>>