背景:

在做测试时发现harbor仓库端口开放这,却一直登录不上去,重启harbor资源包docker-compose还是不行,修改了docker.service文件不行,json文件也不行,以下是涉及到的命令和报错(好像是这个,查的日志)

docker login -u admin -p Harbor12345 192.168.0.210

docker push 192.168.0.210/myproject-lic/nginx:v1

2024-08-12T07:49:20Z [INFO] [/registryctl/main.go:71]: Got an interrupt, shutting down...
2024-08-12T07:49:20Z [INFO] [/registryctl/main.go:75]: Registry controller is shut down properly
2024-08-12T07:49:20Z [FATAL] [/registryctl/main.go:89]: http: Server closed
Appending internal tls trust CA to ca-bundle ...
find: '/etc/harbor/ssl': No such file or directory
Internal tls trust CA appending is Done.

解决方案:

harbor默认在80端口,将现有的环境down,再将harbor.cfg的80端口修改至81端口(我是这样解决的)

#涉及到push操作注意添加以下内容

[root@harbor log]# cat /etc/docker/daemon.json
{
  "insecure-registries":["192.168.0.210:81"]
}

systemctl restart docker

GitHub 加速计划 / ha / harbor
23.24 K
4.68 K
下载
Harbor 是一个开源的容器镜像仓库,用于存储和管理 Docker 镜像和其他容器镜像。 * 容器镜像仓库、存储和管理 Docker 镜像和其他容器镜像 * 有什么特点:支持多种镜像格式、易于使用、安全性和访问控制
最近提交(Master分支:2 个月前 )
9e55afbb pull image from registry.goharbor.io instead of dockerhub Update testcase to support Docker Image Can Be Pulled With Credential Change gitlab project name when user changed. Update permissions count and permission count total Change webhook_endpoint_ui Signed-off-by: stonezdj <stone.zhang@broadcom.com> Co-authored-by: Wang Yan <wangyan@vmware.com> 1 天前
3dbfd422 Signed-off-by: wang yan <wangyan@vmware.com> 2 天前
Logo

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

更多推荐