当前位置:网站首页>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

边栏推荐
- Expression du suffixe (une question par jour pendant les vacances d'été 4)
- 浅谈‘过早优化’
- ClickHouse,让查询飞起来!!!
- [try to hack] SQL injection less7 (into outfile and Boolean blind annotation)
- 【Pygame实战】飞机射击大作:宇宙激战一触即发...这款超经典的射击游戏也该拿出来重启了~
- php:filter伪协议之[BSidesCF 2020]Had a bad day
- BGP联邦实验
- 可穿戴设备的自电容触摸控制器IT7259Q-13,IT7259EX-24
- [pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.
- (BFS)模板+例题(走迷宫,八数码)
猜你喜欢
随机推荐
STL map操作
946. 验证栈序列 ●● & 剑指 Offer 31. 栈的压入、弹出序列 ●●
C语言经典例题-将输入的两位数转成英文
Analysis of data governance
C语言学习笔记
【2023提前批 之 面经】~ 京东方
地图附近名片流量主小程序开发
[try to hack] SQL injection less7 (into outfile and Boolean blind annotation)
Application of ERP management system in equipment manufacturing enterprise management
Chapter 4 event handling of quick mastering QML
老照片上色——DeOldify快速上手
BGP联邦实验
链表合并(暑假每日一题 3)
xxl-job 实现email发送警告的代码解析(一行一行代码解读)
C语言经典例题-switch case语句转换日期格式
【攻防世界WEB】难度三星9分入门题(上):simple_js、mfw
Gear 月度更新|6 月
[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.
第三篇 RBAC权限管理 数据库设计详解
【攻防世界WEB】难度三星9分入门题(中):ics-05、easytornado









