Harbor 使用中出现的问题
harbor
Harbor 是一个开源的容器镜像仓库,用于存储和管理 Docker 镜像和其他容器镜像。 * 容器镜像仓库、存储和管理 Docker 镜像和其他容器镜像 * 有什么特点:支持多种镜像格式、易于使用、安全性和访问控制
项目地址:https://gitcode.com/gh_mirrors/ha/harbor
免费下载资源
·
安装
使用宝塔安装
安装成功的标志,见下图。初始的默认用户是admin,密码是Harbor12345,登录成功:
错误现象
# docker login 192.168.1.50:8005
Username: admin
Password:
Error response from daemon: Get "https://192.168.1.50:8005/v2/": http: server gave HTTP response to HTTPS client
root@btserver:~#
故障原因:
harbor默认是https协议的,如果想要通过http协议拉取harbor的镜像需要修改每个节点上的/etc/docker/daemon.json文件
使用docker login到私服,需要将私服的http地址配置到docker的不安全register中,使用下述命令修改
# vim /etc/docker/daemon.json
重新载入及重启
载入及重启后你以为一定会启动并没有实现,出现如下图所示现象,
# systemctl daemon-reload
# systemctl restart docker
使用 docker布置 Harbor 会用到好几个镜像,这些镜像在 Harbor 容器启动时也要一并启动才行,大家看看下图就知道了。
全都启动后,Harbor 才可能重新正常启动,这说明 Harbor 的docker 应用不是 Harbor 一个软件在战斗。
测试
查看docker info是否配置私服地址成功;
# docker info
Insecure Registries:
gkcloud.gadd.cn:8005 # 说明已经配置成功
127.0.0.0/8
Registry Mirrors:
GitHub 加速计划 / ha / harbor
23.24 K
4.67 K
下载
Harbor 是一个开源的容器镜像仓库,用于存储和管理 Docker 镜像和其他容器镜像。 * 容器镜像仓库、存储和管理 Docker 镜像和其他容器镜像 * 有什么特点:支持多种镜像格式、易于使用、安全性和访问控制
最近提交(Master分支:1 个月前 )
c5d26723
chore(deps): bump github.com/go-openapi/runtime in /src
Bumps [github.com/go-openapi/runtime](https://github.com/go-openapi/runtime) from 0.26.2 to 0.28.0.
- [Release notes](https://github.com/go-openapi/runtime/releases)
- [Commits](https://github.com/go-openapi/runtime/compare/v0.26.2...v0.28.0)
---
updated-dependencies:
- dependency-name: github.com/go-openapi/runtime
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: miner <yminer@vmware.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Shengwen YU <yshengwen@vmware.com>
Co-authored-by: miner <yminer@vmware.com> 11 天前
76624373
chore(deps): bump github.com/coreos/go-oidc/v3 in /src
Bumps [github.com/coreos/go-oidc/v3](https://github.com/coreos/go-oidc) from 3.10.0 to 3.11.0.
- [Release notes](https://github.com/coreos/go-oidc/releases)
- [Commits](https://github.com/coreos/go-oidc/compare/v3.10.0...v3.11.0)
---
updated-dependencies:
- dependency-name: github.com/coreos/go-oidc/v3
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>
Co-authored-by: Shengwen YU <yshengwen@vmware.com>
Co-authored-by: miner <yminer@vmware.com> 11 天前
更多推荐
已为社区贡献3条内容
所有评论(0)