请帮我配置jenkins docker build publish plugin。 我为docker repo设置了artifactory,并尝试从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
答案 0 :(得分:2)
它与Jenkins Docker构建和发布插件无关,请参阅源代码DockerBuilder.java,它将直接执行docker
命令。
如果您的神器服务器(https://artifactory.corp.inmobi.com)未通过CA认证,请检查Remote access to a private docker-registry以在您的jenkins服务器(具有docker守护程序)中启用它
或者请您的IT管理员为https://artifactory.corp.inmobi.com
申请官方CA认证