Harbor 1.8.0 安装

版本信息

  • OS:CentOS Linux 7.6 Release
  • Docker:18.09.6, build 481bc77156
  • Docker-compose:1.24.0
  • Harbor:harbor-offline-installer-v1.8.0.tgz

环境准备

慎用:

yum -y install epel-release && yum makecache && yum update
iptables -F

  • setenforce 0
  • systemctl stop firewalld && systemctl disable firewalld
  • systemctl daemon-reload && systemctl restart docker.service
  • echo “net.ipv4.ip_forward = 1” >> /etc/sysctl.conf
  • echo “net.ipv4.ip_forward_use_pmtu = 0” >> /etc/sysctl.conf
  • echo “net.ipv6.conf.all.forwarding = 1” >> /etc/sysctl.conf
  • sysctl -p
  • yum -y install wget iptables-services vim gcc yum-utils device-mapper-persistent-data lvm2

安装步骤

1. docker

CentOS 7 安装 docker-ce

2. docker-compose

curl -L https://github.com/docker/compose/releases/download/1.24.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

3. Harbor

  • wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.0.tgz
  • tar -zxvf harbor-offline-installer-v1.8.0.tgz
  • cd harbor
  • vim harbor.yml
#修改如下几项
hostname = 你本机的IP
harbor_admin_password = admin账号的密码
  • ./install.sh
#显示如下内容则为安装成功

Creating harbor-log         ... done
Creating harbor-db          ... done
Creating registry           ... done
Creating redis              ... done
Creating harbor-adminserver ... done
Creating harbor-ui          ... done
Creating harbor-jobservice  ... done
Creating nginx              ... done

✔ ----Harbor has been installed and started successfully.----

具体的运行信息和端口信息可以使用docker ps -a来查看

你可能感兴趣的:(docker)