Harbor私有仓库部署
Harbor是由VMware公司开源的企业级的Docker Registry管理项目
https://github.com/vmware/harbor/

#下载 docker-compose-1.12.0

  1. wget https://github.com/docker/compose/releases/download/1.12.0/docker-compose-Linux-x86_64
  2. mv docker-compose-Linux-x86_64 /usr/bin/docker-compose
  3. chmod a+x /usr/bin/docker-compose

下载 harbor-1.1.2

  1. wget --continue https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-offline-installer-v1.1.2.tgz
  2. tar -xzvf harbor-offline-installer-v1.1.2.tgz
  3. cd harbor docker load -i harbor.v1.1.2.tar.gz

docker-compose.yml可以修改默认的docker-nginx中的映射端口避免与服务器上的配置冲突

配置 harbor
# vim harbor.cfg

hostname = 192.168.253.137 # 修改为本机IP或者域名

ui_url_protocol = http
启动对应镜像

./install.sh

修改 docker 启动项

vim /usr/lib/systemd/system/docker.service

ExecStart=/usr/bin/dockerd —insecure-registry=192.168.253.137

systemctl daemon-reload
# systemctl restart docker

登录 docker registry

docker login -u admin 192.168.253.137 -p