yum -y install python-pip
yum -y install epel-*
pip install --upgrade pip
pip install -U -i 清华源 docker-compose
mkdir /data
cd /opt/harbor
./prepare #初始化安装环境
./install.sh #根据当前目录下的docker-compose.yml开始下载依赖的镜像,检测并安装顺序依次启动各个服务
docker images #查看镜像
systemctl daemon-reload && systemctl restart docker
docker login ip
admin
pass
登录失败,进入/top/harobr
在有docker-compose.yml目录下执行dockers-compose stop
dockers-compose start
登录私有仓库
docker login ip
Username:admin
Password:
使用docker方式部署私有镜像registry
docker pull registry
docker run -itd -p 5000:5000 -v /opt/registry:/var/lib/registry registry:latest bash