当前位置:网站首页>Install harbor (online offline)

Install harbor (online offline)

2022-06-13 05:08:00 Qingfeng

install harbor

Harbor, It's an English word , It means harbor , What is the harbor for , It's the one that holds the goods , And the goods , It's in a container , When it comes to containers , I have to mention Docker Containers , because docker The technology of container is based on the principle of container . therefore ,Harbor It's one for storing Docker Enterprise level of mirroring Registry service .
Registry yes Dcoker An official private warehouse image , You can label the local image and push To Registry In the private warehouse of the container . Enterprises can meet their own needs , Use Dokcerfile Create your own image , And push it into a private warehouse , This can greatly improve the efficiency of pulling image .

One sentence summary harbor It's storage docker A private repository of images

1、 Download the installation package and copy it to linux in

Offline installation package download

https://github.com/goharbor/harbor/releases

#  Switch to /data/ Under the table of contents 
cd /data/  
#  Create directory harbor
mkdir harbor 
#  Will download okay harbor-offline-installer-v1.10.1.tgz decompression 
tar -xcvf harbor-offline-installer-v1.10.1.tgz
#  Switch to /data/ Under the table of contents 
cd /data/  
#  Create directory harbor
mkdir harbor 
#  Will download okay harbor-online-installer-v1.10.10.tgz decompression 
tar -zxvf harbor-online-installer-v1.10.10.tgz

Online installation package download

https://mirror.rancher.cn/#harbor/

2、 Modify the configuration file

# yes , we have harbor The configuration file for is harbor.yml.tmpl, You can make a copy and rename it 
cp harbor.yml.tmpl harbor.yml 
vi harbor.yml  

 picture

3、 Execute installation script

./install.sh  #  install 

 picture

4、 Look at the mirror image

because harbor Bring it with you docker Private warehouse , Can pass docker ps see

 picture

5、 visit harbor

ip+ port

image-20220426140408316

 Expand :
# start-up harbor
docker-compose start
# stop it harbor
docker-compose stop
原网站

版权声明
本文为[Qingfeng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/164/202206130507518745.html