#安装epel源
[root@localhost yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo
[root@localhost yum.repos.d]# http://mirrors.aliyun.com/repo/Centos-7.repo
[root@localhost yum.repos.d]# sed -i 's#\$releasever#7#g' /etc/yum.repos.d/CentOS-Base.repo
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
[root@localhost yum.repos.d]# yum -y install docker-compose
[root@localhost yum.repos.d]# cd /usr/src/
[root@localhost src]# wget http://harbor.orientsoft.cn/harbor-v1.5.0/harbor-offline-installer-v1.5.0.tgz
[root@localhost src]# ls
debug harbor-offline-installer-v1.5.0.tgz kernels
[root@localhost src]# tar xf harbor-offline-installer-v1.5.0.tgz -C /usr/local/
[root@localhost src]# ls /usr/local/
bin etc games harbor include lib lib64 libexec sbin share src
[root@localhost harbor]# ls
common docker-compose.clair.yml docker-compose.notary.yml docker-compose.yml ha
harbor.cfg harbor.v1.5.0.tar.gz install.sh LICENSE NOTICE prepare
[root@localhost harbor]# vim harbor.cfg
......
#The IP address or hostname to access admin UI and registry service.
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname = localhost.localdomain
......
#运行脚本前需要安装docker
[root@localhost harbor]# ./install.sh
[root@localhost harbor]# ss -antl
State Recv-Q Send-Q Local Address:Port