资源编排就是合理快速的分配计算资源和硬件资源,进行计算。

docker: swarm
google: kubernetes (k8s,k3s)
opensource: docker-compose

安装harbor仓库

0) 创建/root/harbor目录,cd到此目录
1) 下载harbor安装包
curl ‘http://pan.itshine.cn:5080/?explorer/share/fileOut&shareID=64h6PiQQ&path=%7BshareItemLink%3A64h6PiQQ%7D%2F%E5%B7%A5%E5%85%B7%2Fharbor-offline-installer-v2.9.0.tgz’ > ‘./harbor-offline-installer-v2.9.0.tgz’

2)网上搜寻harbor安装的docker-compose yml文件。(github)
注意: 这个docker-compose.yml文件是安装时候生成的。

3)docker-compose up -d

admin/root :Harbor12345

具体安装过程


curl 'http://pan.itshine.cn:5080/?explorer/share/fileOut&shareID=64h6PiQQ&path=%7BshareItemLink%3A64h6PiQQ%7D%2F%E5%B7%A5%E5%85%B7%2Fharbor-offline-installer-v2.9.0.tgz' > './harbor-offline-installer-v2.9.0.tgz'
curl 'http://pan.itshine.cn:5080/?explorer/share/fileOut&shareID=64h6PiQQ&path=%7BshareItemLink%3A64h6PiQQ%7D%2Fdocker-compose-yms%2Fdocker-compose' > './docker-compose'
chmod +x docker-compose
cp docker-compose /bin/
tar zxf harbor-offline-installer-v2.9.0.tgz
cp harbor.yml.tmpl harbor.yml


使用mkcert生成证书配置如下

在这里插入图片描述

修改完成后直接执行脚本安装
sh install.sh
这一步时间较长,等待镜像下载完成即可。

注意,每次修改完harbor.yml都要执行 install.sh

测试

访问 https://harbor.ycjy.info:8081
使用admin,Harbor12345登录

在这里插入图片描述

上传

在这里插入图片描述

如果上传出现了错误,是说明harbor ssl证书没验证,

unauthorized: unauthorized to access repository: internal/centos-nginx, action: push: unauthorized to access repository: internal/centos-nginx, action: push

需要修改/etc/docker/daemon.json


[root@shuyang2 DOCKER]# cat /etc/docker/daemon.json
{
"registry-mirrors" : [
    "https://nexus.ycjy.info"
  ],
  "insecure-registries" : [
    "https://nexus.ycjy.info","harbor.ycjy.info:4443"
  ],
  "dns" : [ "192.168.10.19" , "8.8.8.8" ]
}
[root@sh

insecure-registries表示不安全的docker库,可以告知docker不要去报错。

这就可以了。

GitHub 加速计划 / ha / harbor
10
3
下载
Harbor 是一个开源的容器镜像仓库,用于存储和管理 Docker 镜像和其他容器镜像。 * 容器镜像仓库、存储和管理 Docker 镜像和其他容器镜像 * 有什么特点:支持多种镜像格式、易于使用、安全性和访问控制
最近提交(Master分支:6 个月前 )
45659070 Fix integration issue with UI Signed-off-by: stonezdj <stone.zhang@broadcom.com> 9 天前
add0b600 chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp](https://github.com/open-telemetry/opentelemetry-go) from 1.31.0 to 1.34.0. - [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases) - [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.31.0...v1.34.0) --- updated-dependencies: - dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 11 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐