Harbor的web登錄頁面默認是80端口,這樣不利於我們的web服務應用管理,以及服務器安全方面的原因,因此需要修改80端口
root@harbor:~/soft/harbor# ls common docker-compose.notary.yml ha harbor.v1.5.0.tar.gz LICENSE prepare docker-compose.clair.yml docker-compose.yml harbor.cfg install.sh NOTICE
1、打開docker-compose.yml文件,修改80:80為8999:80
root@harbor:~/soft/harbor# vim docker-compose.yml
2、修改common/templates/registry/config.yml文件加入8999端口
root@harbor:~/soft/harbor# vim common/templates/registry/config.yml
3、重啟服務和重新加載配置文件install.sh
root@harbor:~/soft/harbor# ./install.sh