安装前期条件
docker,docker-compose(版本不能太低)
安装
1.wget https://storage.googleapis.com/harbor-releases/harbor-offline-installer-v1.3.0.tgz
2.tar -xzvf harbor-offline-installer-v1.3.0.tgz
3.cd harbor
4.docker load -i harbor.v1.3.0.tar.gz
5.vim harbor.cfg
hostname = 你自己的服务器ip地址(50.xxx.xxx.xxx)
6. ./install.sh
默认账号密码:admin - Harbor12345
—到此harbor已经启动—
如何修改端口(建议不要改,修改之后好像推镜像有一些坑爹问题出现)
1.vim docker-compose.yml
修改80成1180
2.vim common/templates/registry/config.yml
修改完配置重启
docker-compose down -v
docker-compose up -d
搭建好后访问下自己的 ip:1180 试试看(如:http://50.xxx.xxx.xxx:1180)