1. 安装docker-compose

1
[root@harbor ~]# yum install docker-compose -y

2. 配置docker允许http访问

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[root@harbor ~]# cat /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "100m",
"max-file": "3"
},
"max-concurrent-downloads": 10,
"max-concurrent-uploads": 10,
"registry-mirrors": ["https://7bezldxe.mirror.aliyuncs.com"],
"insecure-registries":["192.168.8.182"],
"storage-driver": "overlay2",
"storage-opts": [
"overlay2.override_kernel_check=true"
]
}

3. 下载harbor离线安装包

1
curl -OL https://github.com/goharbor/harbor/releases/tag/v2.5.3

4. 安装harbor

1
[root@harbor harbor]# docker load -i harbor.v2.3.5.tar.gz