持续集成的时候docker build总是不成功

  • Choerodon平台版本:0.18.0

  • 运行环境:自主搭建
    祝中秋节快乐

  • 问题描述:
    持续集成的时候提交到gitlab上的代码,gitlab maven阶段通过,就是docker build的时候总是通过不了
    下面是gitlab截图,尝试了很多办法,关防火墙,docker.json中放"registry-mirrors":[“https://docker.mirrors.ustc.edu.cn”],都不行

  • 执行的操作:
    重试很多次就卡在这
    甚至runner重新部署,其他相关服务重新部署。。。。

  • 报错信息(请尽量使用代码块或系统截图的形式展现):

  • 建议:

    麻烦了

看了harbor的日志
2019-09-12T08:00:23Z [WARNING] [/common/config/store/driver/db.go:43]: failed to get metadata, key:reload_key, error:, skip to load item
2019-09-12T08:00:23Z [WARNING] [/common/config/store/driver/db.go:43]: failed to get metadata, key:cfg_expiration, error:, skip to load i tem
2019-09-12T08:00:23Z [ERROR] [/common/config/store/store.go:67]: error when loading data item, key ldap_url, value , error the configure value can not be empty
2019-09-12T08:00:23Z [ERROR] [/common/config/store/store.go:67]: error when loading data item, key ldap_base_dn, value , error the configure v alue can not be empty
2019-09-12T08:00:23Z [DEBUG] [/core/filter/security.go:233]: OIDC CLI modifer only handles request by docker CLI or helm CLI
2019-09-12T08:00:23Z [DEBUG] [/core/filter/security.go:491]: can not get user information from session
2019-09-12T08:00:23Z [DEBUG] [/core/filter/security.go:560]: user information is nil
2019-09-12T08:00:23Z [ERROR] [/common/config/manager.go:192]: failed to get key admiral_url, error: the configure value is not set
2019-09-12T08:00:23Z [ERROR] [/common/config/manager.go:192]: failed to get key admiral_url, error: the configure value is not set
2019-09-12T08:00:23Z [DEBUG] [/core/filter/security.go:574]: using local database project manager
2019-09-12T08:00:23Z [DEBUG] [/core/filter/security.go:576]: creating local database security context…
2019/09/12 08:00:23 [D] [server.go:2619] | 10.233.67.1| 200 | 2.411384ms| match| GET /api/ping r:/api/ping
不知道会不会影响

runner 容器没法访问到 https://registry.dev.xxx.cn 这个地址,在POD执行 curl 这个地址看看网络有没有问题

在pod中curl https://registry.dev.nxtkj.cn 的时候报这个错误 但我已经把ca.crt发到了 * /etc/docker/certs.d/registry.dev.nxtkj.cn目录下,
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
而且我发现harbor中多出个我新建的项目出来,不知道是不是这个问题


我又把多出的这个项目的ca.crt都重新复制到docker…目录下 还是不行
盼回,已经搞了几天了 都不成功,甚至全部重新装过都是这个问题


ca.crt已经放到了/etc/docker…目录下
麻烦了

终于解决了 发现是内环地址不能直接域名访问的问题。