Kubernetes学习之路(28)之镜像仓库Harbor部署

Harbor的部署

官方文档

Harbor有两种安装的方式:

1、环境需求

目标主机需要部署Docker和Docker-compose,以下为官方的软硬件要求:

硬件需求

资源 容量 推荐配置
CPU >= 2C >= 4C
Memory >= 4GB >= 8GB
Disk >= 40GB >= 160GB

软件需求

软件 版本
Docker Engine >= 17.06.0-ce
Docker Compose >= 1.18.0
Openssl 最新版本

2、安装步骤

安装步骤归结为以下内容

  • (1)下载安装程序,并安装docker-compose;
  • (2)配置harbor.yml ;
  • (3)运行install.sh安装并启动Harbor;
# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.2.tgz

# curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

# chmod +x /usr/local/bin/docker-compose 

# tar -zxf harbor-offline-installer-v1.8.2.tgz

# cd harbor && vim harbor.yml
hostname: 192.168.56.110        #更改hostname

# ./install.sh
......
✔ ----Harbor has been installed and started successfully.----

Now you should be able to visit the admin portal at http://192.168.56.110. 
For more details, please visit https://github.com/goharbor/harbor .

3、登录Harbor UI

猜你喜欢

转载自www.cnblogs.com/linuxk/p/11357769.html