安装 Docker
修改配置
vim /etc/docker/daemon.json { "insecure-registries" : ["myregistrydomain.com:5000", "0.0.0.0"] } # 重启服务 systemctl restart docker
wget -O /etc/yum.repos.d/epel.repo
http://mirrors.aliyun.com/repo/epel-7.repo
yum install docker-compose -y
# 解压
tar -zxf harbor-offline-installer-v2.0.2.tgz
# 进入解压的目录,修改配置
cp harbor.yml.tmpl harbor.yml
vim harbor.yml