搭建本地镜像仓库和harbor

792 阅读1分钟

安装本地镜像仓库

1、docker pull registry:2

2、docker run -d -p 5000:5000 registry:2

3、docker tag zookeeper:3.5 localhost:5000/zookeeper:3.5

4、docker push localhost:5000/zookeeper:3.5

安装harbor

在github上下载harbor的线下安装包

1、进入到harbor,修改harbor.cfg中到hostname 2、进入docker-compose.yml,修改一些配置,保存推出后,./install.sh运行