Harbor安装那里还是很简单,就是在Docker Login那里掉坑里去了,搞半天,写博客的时候,又重新安装了一遍

1.准备两台服务器
centos7
harbor 10.19.46.15
client 10.19.44.31
2.harbor需要安装docker和docker-composere,client只需要安装docker
Docker安装
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum -y install docker-ce
systemctl start dockerDocker Compose 安装
Docker Compose 安装
yum install epel-release
yum install -y python-pip
pip install docker-compose
yum install git
harbor1.8 下载
https://github.com/goharbor/harbor/releases

解压出来
[root@harbor harbor]# ll
总用量 32
-rw-r--r--. 1 root root 4519 5月 21 15:59 harbor.yml
-rwxr-xr-x. 1 root root 5088 5月 21 15:59 install.sh
-rw-r--r--. 1 root root 11347 5月 21 15:59 LICENSE
-rwxr-xr-x. 1 root root 1654 5月 21 15:59 prepare修改harbor.yml
hostname 这里设置本机的ip
harbor_admin_password web页面的密码
运行
sh ./install.sh安装成功
......
Status: Downloaded newer image for goharbor/harbor-registryctl:v1.8.0
Creating harbor-log ... done
Creating harbor-db ... done
Creating registry ... done
Creating redis ... done
Creating registryctl ... done
Creating harbor-core ... done
Creating harbor-jobservice ... done
Creating harbor-portal ... done
Creating nginx ... done✔ ----Harbor has been installed and started successfully.----
Now you should be able to visit the admin portal at http://10.19.46.15.
For more details, please visit https://github.com/goharbor/harbor .
访问页面
http://10.19.46.15
如果想要停止,或者是服务器重启了,需要手动重启,在harbor的安装目录,里执行命令
[root@harbor harbor]# ll
总用量 40
drwxr-xr-x. 3 root root 20 5月 22 22:24 common
-rw-r-----. 1 root root 5183 5月 22 22:24 docker-compose.yml










