Docker Harbor

Harbor创建

安装依赖软件

yum -y install openssl

Installation Steps

1)Offline installer:

从github上下载官方最新包,然后上传到服务器上

2)解压

tar xvf harbor-offline-installer-<version>.tgz  -C /usr/local/

3)修改配置文件

# cd /usr/local/harbor
# vim harbor.yml
# 将hostname改为对应的本机地址(not localhost or 127.0.0.1)
# 修改harbor_admin_password管理用户密码,只能在这里改,改后不可再改

hostname一定要用域名

4)安装启动

./install

Configuring Harbor with HTTPS Access

Getting Certificate Authority

Getting Server Certificate

1) Create your own Private Key:

2) Generate a Certificate Signing Request:

3) Generate the certificate of your registry host:

Configuration and Installation

2) Configure Server Certificate, Key and CA for Docker

Delpoy .com.cert,yourdomain.com.key, andca.crt` for Docker:

3) Configure Harbor

vim /usr/local/harbor/harbor.yml

修改为以下内容

If Harbor is already running, stop and remove the existing instance. Your image data remain in the file system

编辑docker中配置文件,daemon.json,去掉"insecure-registries": ["sdqcharbor.com"]这一行

重启docker

预编译

登录

上传镜像

参考文档

官方文档

Last updated

Was this helpful?