安装

wget https://storage.googleapis.com/harbor-releases/release-1.4.0/harbor-offline-installer-v1.4.0.tgz
tar -xf harbor-offline-installer-v1.4.0.tgz

docker-compose

curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose


chmod +x /usr/bin/docker-compose


vim harbor.cfg

更改宿主机端口

vim docker-compose.yaml

vim common/templates/registry/config.yml


修改docker 的私有仓库地址
vim /etc/sysconfig/docker

service docker restart 
sh ~/harbor/prepare
sh ~/harbor/install.sh