Harbor仓库push显示
背景:
在做测试时发现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
更多推荐
所有评论(0)