下载地址:
harbor-vmware 研发
网址:github.com/vmware/harbor/releases
wget https://storage.googleapis.com/harbor-releases/harbor-offline-installer-v1.5.2.tgz
解压:
tar xf harbor-offline-installer-v1.4.0.tgz -C /usr/local/
配置文件:harbor.cfg
hostname =node02.magedu.com
ui_url_protocol = http
max_job_workers = 3
customize_crt = on
ssl_cert = /data/cert/server.crt
ssl_cert_key = /data/cert/server.key
secretkey_path = /data
harbor_admin_password = Harbor12345
db_host = mysql
db_password = root123
db_port = 3306
db_user = root
安装 docker_compose
yum install -y docker-compose
启动安装脚本
./install.sh
ss -ntlp #(80 443 4443)
访问harbor 172.20.0.67
admin:
Harbor12345
push 镜像:
docker tag myweb:v0.3-1 node02.magedu.com/devel/myweb:v0.3-1
docker login node02.magedu.com
docker push node02.magedu.com/devel/myweb
停止harbor
docker-compose pause (暂停服务)
docker-compose unpause
docker-compose stop
docker-compose start