CentOS 安装 Harbor的简单过程(仅使用http 未使用https)
1. 下载离线安装包
在线安装 99% 会失败, 建议还是使用离线安装包
下载地址
https://github.com/vmware/harbor/releases
20180719 时最新版本的get地址为:
https://storage.googleapis.com/harbor-releases/harbor-offline-installer-v1.5.2-rc1.tgz
需要翻墙 建议使用百度云盘下载
安装包较大

2. 安装docker 以及安装 docker-composet
docker 不再重复
docker-compose 直接下载 二进制文件 放到 /usr/bin (随便一个path路径包含的即可)
然后增加执行权限
chmod +x /usr/bin/docker-compose
验证执行命令无问题

修改 docker的配置文件
vim /etc/docker/daemon.json
{
"registry-mirrors": ["http://a7d80d83.m.daocloud.io"],
"insecure-registries":["CentOS75:8081", "127.0.0.1:8081","10.24.101.99:81","10.24.101.99:8081"]
}
增加:
"insecure-registries":["CentOS75:8081", "127.0.0.1:8081","10.24.101.99:81","10.24.101.99:8081"]
3. copy离线安装文件到 linux机器 并且解压缩包
cd 到harbor目录。 将下面最大的gz 包使用 gzip -d 的命令解压缩出来
然后docker load -i 的方式将 vm harbor相关的镜像导入
导入的镜像主要有:

4. 还是在当前harbor目录 修改harbor的配置文件
vim harbor.cnf 修改点:
hostname=10.24.101.99: ##如果修改了默认端口 这个地方需要同步也修改一下 避免 docker login 失败 我昨天就登录失败了很久. ## Configuration file of Harbor #This attribute is for migrator to detect the version of the .cfg file, DO NOT MODIFY!
_version = 1.5.
#The IP address or hostname to access admin UI and registry service.
#DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients.
hostname = 10.24.101.99: 默认密码
##The initial password of Harbor admin, only works for the first time when Harbor starts.
#It has no effect after the first launch of Harbor.
#Change the admin password from UI after launching Harbor.
harbor_admin_password = Harbor12345 其他密码 #The address of the Harbor database. Only need to change when using external db.
db_host = mysql #The password for the root user of Harbor DB. Change this before any production use.
db_password = root123 #The port of Harbor database host
db_port = #The user name of Harbor database
db_user = root ##### End of Harbor DB configuration####### #The redis server address. Only needed in HA installation.
#address:port[,weight,password,db_index]
redis_url = redis:
5. 修改docker-compose.yml 文件 将端口号与 上一步的配置文件中的端口号一致起来

6. 还是在当前目录执行命令
./install.sh
我这边已经有了 nginx 和registry 命令的container 了 所以报错
需要需改 docker-compose文件 或者是 修改 容器的名字 简单点就是rename 容器的名字即可
docker rename registry registry2
docker rename nginx nginx2
继续执行 会提示 正常 然后这是 重复安装时的界面

安装完成时的提示

注意提示信息
? ----Harbor has been installed and started successfully.---- Now you should be able to visit the admin portal at http://10.24.101.99:81.
For more details, please visit https://github.com/vmware/harbor .
安装完成形成很多container
如图示 我这个版本有8个容器在运行

7. 进行docker login
docker login 10.24.101.99:
用户密码 就是 上文中配置文件里面的
admin:Harbor12345

8. docker tag和docker push
简单命令
docker tag hello-world 10.24.101.99:/library/hello-world: docker push 10.24.101.99:/library/hello-world:

9. 网页端进行查看
登录地址与docker login的地址完全一致.

输入 admin和more密码登录
查看镜像标签日志等

10 https 还有 高可用等以后有时间在研究. 验证重复 install.sh 也不会降之前 push的镜像删除掉 非常好用 比直接用regsitry 还简单. mark一下 继续学习.
CentOS 安装 Harbor的简单过程(仅使用http 未使用https)的更多相关文章
- centos 安装 和 linux 简单命令
1. centos 安装 参照:https://www.cnblogs.com/tiger666/articles/10259102.html 安装过程注意点: 1. 安装过程中的选择安装Basic ...
- CentOS安装Harbor
CentOS版本:7.4 Harbor版本:1.5.0 Docker版本:1.12.6 Docker Compose版本:1.21.2 一.安装Harbor(http方式,80端口) 1.安装Dock ...
- CentOS安装Node.js简单教程
记录一下自己安装过程 先安装gcc-c++编译环境和openssl 代码如下 复制代码 yum install gcc-c++ openssl-devel wget http://nodejs.or ...
- centos 安装 crontab 和 简单的使用教程
crontab是一个非常好用的定时执行任务的程序.以下是操作方式 1. 安装 cron 的 主程序 : yum -y install vixie-cron 2. 安装 cron 守护进程的表格的程序 ...
- 阿里云centos安装ftp与svn过程
1.下载xshell或者secureCRT 2.登录centos或者服务器 3.安装vsftpd [root@xxx]# yum install vsftpd //安装vsftpd [root@xxx ...
- 银河麒麟v4.0.2 安装gscloud的简单过程
1. 本来想用 tar包安装 redis 结果总是报错, 提示需要make test 但是我已经make test 了 所以还是使用 apt-get来安装. 2. 方式 apt-get update ...
- centos安装python3.7.0过程记录
参考自这里,整理出以下步骤. 一.下载python3.7.0包地址:https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz 二.安装 登陆Li ...
- 安装oracle 11g详细过程仅供参考
- Centos 安装dhcp及简单配置
install yum -y install dhcp file /etc/dhcp/dhcpd.conf eg:-------------------------------- ddns-updat ...
随机推荐
- maven项目中,lib目录下有自己私有的包,则需要配置一下代码,然后进行打包
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compi ...
- zabbix没有frontends目录
去解压缩的源码包中取 # cd /opt/data/src/about_zabbix/zabbix-2.2.3# cp -rv frontends/ /opt/OperMainManager/zabb ...
- OpenCV——边缘检测入门、Canny边缘检测
边缘检测的一般步骤: 最优边缘检测的三个评价标准: 低错误率:表示出尽可能多的实际边缘,同时尽可能地减少噪声产生的误报: 高定位性:标识出的边缘要与图像实际边缘尽可能接近: 最小响应:图像中的边缘只能 ...
- 接收键盘输入的字符串,用FileWirter类将字符串写入文件,用FileReader类读出文件内容显示在屏幕上
public class SY63 { public static void main(String[] args) throws Exception { System.out.print(" ...
- Android An unexpected exception occurred while creating a change object. see the error log for more details
今天再给Android项目工程中的包重命名时出现了这个错误(之前重命名的时候就没有出现,郁闷):An unexpected exception occurred while creating a ch ...
- 配置openfire环境
Openfire 的安装和配置 1. 下载最新的openfire安装文件 官方下载站点:http://www.igniterealtime.org/downloads/index.jsp#openfi ...
- HDU 3072 Intelligence System(tarjan染色缩点+贪心+最小树形图)
Intelligence System Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Othe ...
- SAP调用RestfulApi接口接收数据
因为准备要做一个关于调用外部接口的需求,所以自己先练习一下. 程序说明:我已经在.net开发的系统里提供一个api接口,现在在sap访问这个接口,来接收数据. 这里涉及Restful Api知识,以后 ...
- go语言之行--结构体(struct)详解、链表
一.struct简介 go语言中没有像类的概念,但是可以通过结构体struct实现oop(面向对象编程).struct的成员(也叫属性或字段)可以是任何类型,如普通类型.复合类型.函数.map.int ...
- SCC的奇葩算法——Kosaraju
不会Tarjan,难道就不能与邪恶的SCC作斗争了吗? 祭出Kosaraju. 一些变量名的意义: a[N] 原图的vector存储 b[N] 原图的所有边反向vector存储 s dfs得出的拓扑序 ...