gpt4 book ai didi

build - Docker构建发布插件中的错误

转载 作者:行者123 更新时间:2023-12-02 18:25:08 24 4
gpt4 key购买 nike

您能帮我配置jenkins docker build publish plugin吗?
我有用于docker repo的设置 Artifact ,并尝试从github docker文件中推送图像构建。

以下是我得到的错误:

Error response from daemon: Invalid registry endpoint https://     
https://artifactory.corp.inmobi.com/v1/:
Get https:// https://artifactory.corp.inmobi.com/v1/_ping: dial tcp: unknown port tcp/. \
If this private registry supports only HTTP or HTTPS with an unknown CA certificate, \
please add `--insecure-registry https:` to the daemon's arguments. \
In the case of HTTPS, if you have access to the registry's CA certificate, \
no need for the flag; simply place the CA certificate at /etc/docker/certs.d/ https:/ca.crt

Build step 'Docker build and publish' marked build as failure
Finished: FAILURE

最佳答案

它与Jenkins Docker的构建和发布插件无关,请参见源代码DockerBuilder.java,它将直接执行docker命令。

如果您的 Artifact 服务器(https://artifactory.corp.inmobi.com)不是经过官方CA认证的,请检查Remote access to a private docker-registry以在您的jenkins服务器(具有docker守护程序)中启用它

或要求您的IT管理员为https://artifactory.corp.inmobi.com申请官方CA认证

关于build - Docker构建发布插件中的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27700816/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com