当前位置:网站首页>Harbor image warehouse construction
Harbor image warehouse construction
2022-07-05 11:22:00 【Ji Songsong】
Harbor Image warehouse construction
1、 Install the underlying requirements
- Python Should be 2.7 Or later
- Docker Engine should be 1.10 Or later
- DockerCompose Need to be for 1.6.0 Or later
2、Harbor install
Harbor Official address :
https://github.com/vmware/harbor/releases
To configure harbor.yml
$ tar -zxvf harbor-online-installer-v2.5.2.tgz # With online installation
$ cd harbor && vim harbor.yml
...
hostname: harbor.registry.com # The host name or fully qualified domain name of the target
http: # Default http agreement , If https It works , Can automatically jump https
port: 80 # External access port
#https: #https If you need a certificate, you can comment first
# port: 443
# certificate: /your/certificate/path # Certificate storage path
# private_key: /your/private/key/path # Private key storage path
...
harbor_admin_password: Harbor12345 # Sign in harbor Default password
database:
password: root123 # Database default connection password
....
data_volume: /data # Set up Harbor Data storage directory
...
log: # Set log related information
level: info # Set the log level
local:
rotate_count: 50 # Number of logs reserved
rotate_size: 200M # The size of each log
location: /var/log/harbor # Log storage path
$ ./install.sh
[Step 4]: starting Harbor ...
.....
----Harbor has been installed and started successfully.---- # Indicates successful build
Log in using the command line Harbor, And upload and download images
because docker By default, the pull image is https agreement , We need to be in /etc/docker/daemon.json Middle configuration insecure-registries.
{
"insecure-registries": ["harbor.registry.com"] }
$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
170.18.9.141 harbor.registry.com
$ systemctl restart docker
$ docker login harbor.registry.com # Log in to the warehouse , The certification information is retained in / Home directory /.docker/config.json In file
Username: admin
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
# Label the image as consistent with the warehouse image
$ docker tag nginx:latest harbor.registry.com/library/nginx:v1
# Push the mirror
$ docker push harbor.registry.com/library/nginx:v1
The push refers to repository [harbor.registry.com/library/nginx]
e7344f8a29a3: Pushed
44193d3f4ea2: Pushed
41451f050aa8: Pushed
b2f82de68e0d: Pushed
d5b40e80384b: Pushed
08249ce7456a: Pushed
v1: digest: sha256:3536d368b898eef291fb1f6d184a95f8bc1a6f863c48457395aab859fda354d1 size: 1570
To configure Harbor Of HTTPS visit
Refer to the article in the stack self-control https certificate , After the certificate is generated , Put in harbor.yml In the configuration file certificate,private_key Under the path corresponding to the parameter .
边栏推荐
- R3live series learning (IV) r2live source code reading (2)
- Three suggestions for purchasing small spacing LED display
- 基础篇——REST风格开发
- Risc-v-qemu-virt in FreeRTOS_ Scheduling opportunity of GCC
- The art of communication III: Listening between people
- CDGA|数据治理不得不坚持的六个原则
- Wechat nucleic acid detection appointment applet system graduation design completion (7) Interim inspection report
- Intelligent metal detector based on openharmony
- Guys, I tested three threads to write to three MySQL tables at the same time. Each thread writes 100000 pieces of data respectively, using F
- 高校毕业求职难?“百日千万”网络招聘活动解决你的难题
猜你喜欢
Detailed explanation of MATLAB cov function
[advertising system] incremental training & feature access / feature elimination
Basic testing process of CSDN Software Testing Introduction
CDGA|数据治理不得不坚持的六个原则
Lombok makes ⽤ @data and @builder's pit at the same time. Are you hit?
The ninth Operation Committee meeting of dragon lizard community was successfully held
Detailed explanation of DDR4 hardware schematic design
Intelligent metal detector based on openharmony
About the use of Vray 5.2 (self research notes)
【广告系统】Parameter Server分布式训练
随机推荐
Golang application topic - channel
解决grpc连接问题Dial成功状态为TransientFailure
go语言学习笔记-分析第一个程序
Function///
2022 Pengcheng cup Web
【广告系统】Parameter Server分布式训练
A mining of edu certificate station
Four departments: from now on to the end of October, carry out the "100 day action" on gas safety
Lombok makes ⽤ @data and @builder's pit at the same time. Are you hit?
Array
基础篇——REST风格开发
Ddrx addressing principle
边缘计算如何与物联网结合在一起?
Cron表达式(七子表达式)
sklearn模型整理
CDGA|数据治理不得不坚持的六个原则
The ninth Operation Committee meeting of dragon lizard community was successfully held
What does cross-border e-commerce mean? What do you mainly do? What are the business models?
居家办公那些事|社区征文
Summary of websites of app stores / APP markets