export VERSION=18.06 && curl -fsSL http://rainbond-pkg.oss-cn-shanghai.aliyuncs.com/releases/docker/install-docker.sh | bash -s docker
systemctl daemon-reload
systemctl restart docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://u301fhkm.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker
安装docker-compose
yum install docker-compose
wget https://github.com/goharbor/harbor/releases/download/v1.9.4/harbor-online-installer-v1.9.4.tgz && tar xvf harbor-online-installer-v1.9.4.tgz
修改相关文件,进行安装
vi harbor.yml
./prepare
./install.sh
测试镜像推送
docker pull nginx
docker tag nginx A.B.C.D/nginx:v1
非https添加受信
vi /etc/docker/daemon.json
{
"insecure-registries": [
"goodrain.me"
]
}
推送测试
docker login A.B.C.D
docker push A.B.C.D/nginx:v1