systemctl stop firewalld && systemctl disable firewalld
setenforce 0
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
wget http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli
cat < /etc/docker/daemon.json
{
"exec-opts":["native.cgroupdriver=systemd"],
"insecure-registries":["ip2:80"]
}
EOF
systemctl daemon-reload && systemctl restart docker
cp docker-compose-linux-x86_64 /usr/local/bin/docker-compose
docker-compose --version
Docker Compose version v2.18.0
tar -xvf harbor-online-installer-v2.8.2.tgz
cp harbor-online/harbor.yml.tmpl harbor-online/harbor.yml
#更改hostname为ip,屏蔽https
vi harbor-online/harbor.yml
./install.sh
#web界面:http://ip
#默认:admin/Harbor12345
docker login ip2:8000 -u admin