- 1. 软件准备 harbor2.3.3版本
- 2. 安装
- 3. 使用方法
harbor:
https://github.com/goharbor/harbor/releases
docker20.10.9版本,docker-compose版本1.18.0
第一步
yum install -y docker-compose
第二步:下载harbor-offline-installer-vxxx.tgz
第三步:上传到/opt,并解压
rz -E tar xf harbor-offline-installer-v2.3.3.tgz
第四步:修改harbor配置文件
egrep -v "^$|#" /opt/harbor.yml.tmpl > harbor.yml.tmpl cp harbor.yml.tmpl harbor.yml
vim harbor.yml
hostname: 192.168.80.201 ---ip 地址 http: port: 80 #https: --这里的四行不注释会安装报错 # port: 443 # certificate: /your/certificate/path # private_key: /your/private/key/path harbor_admin_password: 12345 --admin的用户密码 database: password: root123 max_idle_conns: 100 max_open_conns: 900 data_volume: /data trivy: ignore_unfixed: false skip_update: false insecure: false jobservice: max_job_workers: 10 notification: webhook_job_max_retry: 10 chart: absolute_url: disabled log: level: info local: rotate_count: 50 rotate_size: 200M location: /var/log/harbor _version: 2.3.0 proxy: http_proxy: https_proxy: no_proxy: components: - core - jobservice - trivy
第五步:执行install.sh
./install.sh
登录:
192.168.80.2013. 使用方法
修改各个节点的docker配置文件
{ "registry-mirrors": ["https://uoggbpok.mirror.aliyuncs.com"], "insecure-registries": ["192.168.80.201:5000","192.168.80.201"], "live-restore": true }
重启:
systemctl restart docker
push
docker login 192.168.80.201 admin 12345 docker tag nginx 192.168.80.201/yq/nginx:v1 docker push 192.168.80.201/yq/nginx:v1
harbor 上边自带的拉取命令
拉取的主机需要修改docker的配置文件,然后重启
docker pull 192.168.80.201/yq/nginx1@sha256:8269a7352a7dad1f8b3dc83284f195bac72027dd50279422d363d49311ab7d9b
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)