Harbor

2020-03-03  本文已影响0人  钾肥尔德

离线安装包

wget https://github.com/goharbor/harbor/releases/download/v1.10.1/harbor-offline-installer-v1.10.1.tgz

SSL证书

openssl genrsa -out ca.key 4096
openssl req -x509 -new -nodes -sha512 -days 3650 \
 -subj "/C=CN/ST=Shanghai/L=Shanghai/O=harbor/OU=Personal/CN=harbor-test.com" \
 -key ca.key \
 -out ca.crt
# 若要通过FQDN连接harbor,就必须指定CN(Common Name)

配置harbor

vim harbor.yml
hostname: harbor-test.com
certificate: /data/cert/harbor-test.com.crt
private_key: /data/cert/harbor-test.com.key
./prepare
./install.sh
docker-compose down -v
docker-compose up -d

远程访问

https://192.168.1.78

docker login harbor-test.com
docker push harbor-test/[project-name]/[image-name]:[tag-name]
docker pull harbor-test/[project-name]/[image-name]:[tag-name]

Installation with Notary

Installation with Clair

Installation with Chart Repository Service

https://github.com/goharbor/harbor/blob/master/docs/1.10/install-config/configure-yml-file.md

上一篇 下一篇

猜你喜欢

热点阅读