当前位置:网站首页>安装harbor(在线|离线)
安装harbor(在线|离线)
2022-06-13 05:08:00 【〆清峰ㄟ】
安装harbor
Harbor,是一个英文单词,意思是港湾,港湾是干什么的呢,就是停放货物的,而货物呢,是装在集装箱中的,说到集装箱,就不得不提到Docker容器,因为docker容器的技术正是借鉴了集装箱的原理。所以,Harbor正是一个用于存储Docker镜像的企业级Registry服务。
Registry是Dcoker官方的一个私有仓库镜像,可以将本地的镜像打标签进行标记然后push到以Registry起的容器的私有仓库中。企业可以根据自己的需求,使用Dokcerfile生成自己的镜像,并推到私有仓库中,这样可以大大提高拉取镜像的效率。
一句话概括harbor就是存储docker镜像的一个私有仓库
1、下载安装包拷贝到linux中
离线安装包下载
https://github.com/goharbor/harbor/releases
# 切换至/data/目录下
cd /data/
# 创建目录harbor
mkdir harbor
# 将下载好的harbor-offline-installer-v1.10.1.tgz解压
tar -xcvf harbor-offline-installer-v1.10.1.tgz
# 切换至/data/目录下
cd /data/
# 创建目录harbor
mkdir harbor
# 将下载好的harbor-online-installer-v1.10.10.tgz解压
tar -zxvf harbor-online-installer-v1.10.10.tgz
在线安装包下载
https://mirror.rancher.cn/#harbor/
2、修改配置文件
#有的harbor的配置文件叫harbor.yml.tmpl,可以复制一份改名
cp harbor.yml.tmpl harbor.yml
vi harbor.yml
3、执行安装脚本
./install.sh # 安装
4、查看镜像
因为harbor本身自带docker 私有仓库,可以通过docker ps查看
5、访问harbor
ip+端口
扩展:
#启动harbor
docker-compose start
#停止harbor
docker-compose stop
边栏推荐
- Case -- the HashSet set stores the student object and traverses
- 关于匿名内部类
- String()和toString()方法得区别
- C language learning log 12.5
- Embedded hardware - read schematic
- Simple sr: Best Buddy Gans for highly detailed image super resolution Paper Analysis
- Understanding inode
- Mysql8.0.13 installation tutorial (with pictures)
- Clause 34: lambda is preferred over std:: bind
- All blog navigation
猜你喜欢
OpenCV中的saturate操作(饱和操作)究竟是怎么回事
Advanced C - Section 2 - pointers
Sort (internal sort) + external sort
Case - count the number of occurrences of each string in the string
Ruoyi cloud startup tutorial (hand-held graphics)
What is the saturate operation in opencv
Case - simulated landlords (upgraded version)
Metaltc4.0 stable release
lookup
Dup2 use
随机推荐
Regular expressions in QT
Shell variable learning notes
lookup
Listiterator list iterator
Advanced C language - Section 1 - data storage
Gradient descent, learning rate
Sub paragraph of Chapter 16
Ruoyi cloud startup tutorial (hand-held graphics)
Chapter 15 mechanism: Address Translation
Force deduction 121 questions
【多线程编程】Future接口获取线程执行结果数据
Modification and analysis of libcoap source code by Hongmeng device discovery module
Simple-SR:Best-Buddy GANs for Highly Detailed Image Super-Resolution論文淺析
QT using layout manager is invalid or abnormal
Luogu p1036 number selection
C language learning log 11.7
C language learning log 10.5
Embedded hardware - read schematic
OpenCV中的saturate操作(饱和操作)究竟是怎么回事
Clause 33: decltype is used for auto & type formal parameters, with std:: forward