docker搭建私有仓库
harbor私有仓库 下载harbor包 wget https://storage.googleapis.com/harbor-releases/release-1.4.0/harbor-offline-installer-v1.4.0.tgz 解压包并进入目录 tar -zxvf harbor-offline-installer-v1.4.0.tgz -C /usr/local/ cd /usr/local/harbor 编辑配置文件 vim harbor.cfg hostname = 192.168.254.13 #对外访问地址 ui_url_protocol = http #访问方式 max_job_workers = 3 #最大处理进程数 customize_crt = on #是否要启动自定义证书,如果ui_url_protocol = http不生效,如果是https才会生效 harbor_admin_password = Harbor12345 #admin用户的密码 执行文件 [root@master harbor]# ./install.sh note:容器名字不能有registry这个名字,否则脚本执行失败 浏览器访问http://server_ip 创建项目 创建仓库 修改访问地址 [root@master harbor]# vim /etc/docker