安装

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

700

更改宿主机端口

vim docker-compose.yaml

540

vim common/templates/registry/config.yml

439

修改docker 的私有仓库地址

vim /etc/sysconfig/docker

700

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