harbor 1.6 安装
环境
Centos: CentOS Linux release 7.5.1804
Docker: Docker version 18.06.1-ce, build e68fc7a
Docker-composer: docker-compose version 1.20.0, build ca8d3c6
Harbor: harbor-online-installer-v1.6.0.tgz
1.安装docker-compose
$ curl -L https://github.com/docker/compose/releases/download/1.20.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
$ chmod +x /usr/local/bin/docker-compose
2.下载harbar1.6.gz包
wget https://storage.googleapis.com/harbor-releases/release-1.6.0/harbor-online-installer-v1.6.0.tgz
3.解压并且配置Harbor
tar xf harbor-online-installer-v1.6.0.tgz
cd harbor 修改harbor配置
vim harbor.cfg
监听地址hostname = 192.168.214.91#(自己主机ip)
登录密码harbor_admin_password = 12345 (可以不修改)
只允许管理员可以创建项目project_creation_restriction = adminonly
4.安装harbor
因为我这里用的是在线版本安装,所以需要在线下载docker镜像会比较慢,稍等片刻即可!
# pull images 过程中显示下面日志Status: Downloaded newer image for goharbor/nginx-photon:v1.6.0
Creating harbor-log ... done
Creating harbor-db ... done
Creating registry ... done
Creating redis ... done
Creating harbor-adminserver ... done
Creating harbor-ui ... done
Creating harbor-jobservice ... done
Creating nginx ... done
✔ ----Harbor has been installed and started successfully.----
Now you should be able to visit the admin portal at http://192.168.214.91.
For more details, please visit https://github.com/goharbor/harbor .
5.通过web访问
用户名:admin
密码:12345
ok,大功告成,可以上传镜像到仓库了,尽情使用吧!