当前位置:网站首页>Harbor image warehouse
Harbor image warehouse
2022-07-23 15:50:00 【yolo2016】
harbor Mirror warehouse
Harbor Environment building
wget https://github.com/goharbor/harbor/releases/download/v2.3.4/harbor-offline-installer-v2.3.4.tgz
tar -zxvf harbor-offline-installer-v2.3.4.tgz -C /usr/local/
cp harbor.yml.tmpl harbor.yml
./install.sh

Build a mirror image
vi Dockerfile
FROM nginx
RUN echo "hello world, v1" > /usr/share/nginx/html/index.html
docker build --no-cache --force-rm -t web:v1 .
# docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
docker tag web:v1 192.168.3.80:80/repo/web:v1
Image upload
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"exec-opts": ["native.cgroupdriver=systemd"],
"registry-mirrors": ["https://du3ia00u.mirror.aliyuncs.com"],
"live-restore": true,
"log-driver":"json-file",
"log-opts": {
"max-size":"500m", "max-file":"3"},
"storage-driver": "overlay2",
"insecure-registries": ["192.168.3.80:80"]
}
EOF
systemctl restart docker
docker login 192.168.3.80:80
docker push 192.168.3.80:80/repo/web:v1
Image pull and publish
# To write docker-compose.yml
version: "3"
services:
web:
image: 192.168.3.80:80/repo/web:v1
container_name: web
ports:
- 6000:80
docker-compose up -d
Test verification

边栏推荐
- Idea starts multiple projects at once
- As a tester, you cannot fail to understand ADB commands and operations
- [paper study] source mixing and separation robot audio steganography
- Start other independent programs through fmmonitoredprocess in unreal
- Redis的过期策略以及内存淘汰机制,Key过期了为什么没释放内存
- pydensecrf安装
- BGP routing principle
- Safe and reasonable use of electricity to harvest a cool "summer"
- bgp选路原则
- Xlswriter - Excel export
猜你喜欢

(Zset)Redis底层是如何用跳表进行存储的

The current situation and history of it migrant workers

适用于顺序磁盘访问的1分钟法则

bug修改

【无标题】

超详细MP4格式分析

Deep understanding of CAS (spin lock)
![[pyGame actual combat] aircraft shooting masterpiece: fierce battle in the universe is imminent... This super classic shooting game should also be taken out and restarted~](/img/a3/087b1bc7445c53ddbd6d7334da51b9.png)
[pyGame actual combat] aircraft shooting masterpiece: fierce battle in the universe is imminent... This super classic shooting game should also be taken out and restarted~

自定义封装弹出框(带进度条)

什么是真正的 HTAP ?(二)挑战篇
随机推荐
3D math - vector
种种迹象表明,Apple将有望支持AV1
Camera 手电筒修改
Idea five free plug-ins to improve efficiency
Suffix expression (summer vacation daily question 4)
centos7 中彻底卸载mysql
【Try to Hack】sql注入 Less7 (into outfile和布尔盲注)
Start other independent programs through fmmonitoredprocess in unreal
记一次SQL优化
【Pygame实战】飞机射击大作:宇宙激战一触即发...这款超经典的射击游戏也该拿出来重启了~
STL map操作
[7.16] code source - [array division] [disassembly] [select 2] [maximum common divisor]
PHP代码审计4—Sql注入漏洞
STL deque
BGP routing principle
[hiflow] regularly send Tencent cloud SMS sending group
Self capacitance touch controller for wearable devices it7259q-13, it7259ex-24
STL map attribute
Part III detailed explanation of RBAC authority management database design
[try to hack] SQL injection less7 (into outfile and Boolean blind annotation)