<强> 强>
<强> 强>
<强> 强>
,,*
<强> 强>
,,,,
,*,
,*,
,*,
,,*,
,,*,
,,*,
, *,
, *,
,,,
,,,
, *,
, *,
, *,
, *,
, *,
,,,,
<强> 强> 强>
[root@harbor ~] #, cat /etc/redhat-release CentOS Linux  release 7.2.1511 (核心), (root@harbor ~) #, uname - r 3.10.0-327.36.3.el7。x86_64
<强> 强> 强>
<强> 强>
<强> 强>
,,,
<强> 强>
[root@harbor ~] #, mkdir -p /数据/cert
[root@harbor ~] #, cd /数据/证书/
(root@harbor cert) #, openssl req , -newkey rsa: 4096 \ -nodes -sha256  -keyout ca.key -x509  -days 365 \ -out ca.crt  -subj “/C=CN/L=wuhan/O=lisea/CN=harbor-registry”
(root@harbor cert) #, openssl req -newkey rsa: 4096 \ -nodes -sha256  -keyout harbor.lisea.cn.key  \ -out server.csr  -subj “/C=CN/L=wuhan/O=lisea/CN=harbor.lisea.cn”
(root@harbor cert) #, openssl x509 -req -days 365 \ 拷贝;server.csr  -CA ca.crt  -CAkey ca.key \ -CAcreateserial -out  harbor.lisea.cn.crt
<强> 强> 强>
<强> 强> 强>
, *
[root@harbor ~] #, yum install docker - y
, *
[root@harbor ~] #, systemctl enable 码头工人。服务
, *
[root@harbor ~] #, systemctl start 码头工人。服务
, *
[root@harbor ~] #, yum install python-pip - y (root@harbor ~) #, pip install ——upgrade 皮普 (root@harbor ~) #, pip install docker-compose (root@harbor ~) #, pip install ——upgrade 补丁。ssl_match_hostname
, *
[root@harbor ~] #, wget https://github.com/vmware/harbor/releases/download/v1.1.2/harbor-offline-installer-v1.1.2.tgz
,
, *
[root@harbor ~] #, tar zxf harbor-offline-installer-v1.1.2。tgz
, *
[root@harbor ~] #, cd 港
, *
hostname =, harbor.lisea.cn ,,,,,,,,, #,指定私有仓库的主机名,可以是IP地址,也可以是域名,,, 时间=ui_url_protocol https ,,,,,,,,,,,, #,用户访问私仓时使用的协议,默认时http、配置成https 时间=db_password root123 ,,,,,,,,,,#,指定mysql数据库管理员密码 harbor_admin_password: Harbor12345 , #,港口的管理员账户密码 时间=ssl_cert /数据/证书/harbor.lisea.cn.crt ,#,设置证书文件路径=ssl_cert_key /数据/证书/harbor.lisea.cn.key , #,设置证书密钥文件路径
, *
(root@harbor 港)#,。/安装。sh
, *
,,
<强> 强> 强>
<强> 强> 强> <强> 强>,
,*,
,null null null null null null null null null null null null null null null null