当前位置:网站首页>harbor镜像仓库
harbor镜像仓库
2022-07-23 11:15:00 【yolo2016】
harbor镜像仓库
Harbor环境搭建
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

构建镜像
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
镜像上传
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
镜像拉取并发布
# 编写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
测试验证

边栏推荐
- C语言书写规范
- String与Integer互相转换
- 自定义封装弹出框(带进度条)
- Analysis of data governance
- Six ways of uniapp route jump
- Where can I download airserver? How to use tutorial
- [heuristic divide and conquer] the inverse idea of heuristic merging
- 在一个有序数组中查找具体的某个数字(二分查找or折半查找)
- Redis Key没设置过期时间,为什么被主动删除了
- Dynamic planning - force buckle
猜你喜欢

xlswriter - excel导出
![[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.](/img/ba/a174c5daccef7a6ea72c11dad8601d.png)
[pyGame practice] playing poker? Win or lose? This card game makes me forget to eat and sleep.

Remember SQL optimization once

查找论文源代码
![[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}](/img/d0/133d628a304f5c6b5f0d514c9fe222.jpg)
[ctfhub] the data of JWT header and payload are transmitted in clear text. If sensitive information is contained in it, sensitive information will be leaked. Try to find the flag. Format is flag{}

在一个有序数组中查找具体的某个数字(二分查找or折半查找)

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

Safety 7.18 operation

【云原生】docker环境中安装mysql、redis服务

C语言经典例题-switch case语句转换日期格式
随机推荐
idea一次启动多个项目
Guangzhou held a competition for quality and safety supervisors of agricultural products in the town and street
BGP routing principle
C语言宏定义
Six ways of uniapp route jump
As a tester, you cannot fail to understand ADB commands and operations
2022最NB的JVM基础到调优笔记,吃透阿里P6小case
3D数学 - 矢量
xlswriter - excel导出
自定义封装弹出框(带进度条)
【2023提前批 之 面经】~ 京东方
Xlswriter - Excel export
Deep understanding of CAS (spin lock)
C语言经典例题-两个分数相加
Safety 7.18 operation
STL map操作
After vscode is updated, the shortcut keys related to tab cannot be used
Error | cannot read property '_ normalized‘ of undefined
The current situation and history of it migrant workers
VSCode的感叹号+tab的快捷键不能用,以及A-SOUL-live2d插件出问题的解决方法