一、官网下载安装包
docker-compose-linux-x86_64(docker编排工具)
二、安装并配置harbor
yum install docker-common.x86_64
chmod +x /usr/local/bin/docker-compose
docker-compose version
tar xf harbor-offline-installer-v2.9.3-rc2.tgz -C /usr/local
cd /usr/local/harbor/
cp harbor.yml.tmpl harbor.yml
vim harbor.yml
./install.sh
三、浏览器登陆
四、上传镜像
vim /etc/docker/daemon.json
"insecure-registries":["http://node1.harbor.com"]
systemctl daemon-reload
systemctl restart docker.service
docker login -u haha node1.harbor.com
docker tag ubuntu:18.04 node1.harbor.com/cdcas/ubuntu:18.04
docker push node1.harbor.com/cdcas/ubuntu:18.04