在泊坞窗误差建设发布插件 [英] error in docker build publish plugin

查看:172
本文介绍了在泊坞窗误差建设发布插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

能否请你帮我配置詹金斯泊坞窗共建发布插件
我有一个码头工人回购设置artifactory的,并试图从GitHub泊坞窗文件推送到图像的生成;

以下是我得到的错误:

 从后台程序错误响应:无效的注册表端点https://开头
https://artifactory.corp.inmobi.com/v1/:
获取https://开头https://artifactory.corp.inmobi.com/v1/_ping:拨打TCP:未知端口TCP /。 \\
如果本次非公开注册表仅支持HTTP或HTTPS与未知CA证书,\\
请加`--insecure的注册表HTTPS:`来守护程序的参数。 \\
在HTTPS的情况下,如果你有机会到注册表中的CA证书,\\
不需要该标志;只需将CA证书在/etc/docker/certs.d/的https:/ca.crt构建步骤泊坞窗构建和发布标记建设成为失败
表面处理:故障


解决方案

它不与詹金斯泊坞窗相关的构建和发布插件,请参考源$ C ​​$ C <一个href=\"https://github.com/jenkinsci/docker-build-publish-plugin/blob/master/src/main/java/com/cloudbees/dockerpublish/DockerBuilder.java\"相对=nofollow> DockerBuilder.java ,它会直接执行泊坞窗命令。

如果您artifactory的服务器( https://artifactory.corp.inmobi.com )不是官方CA认证的,请检查远程访问私人码头工人的注册表来使它能够在您的詹金斯服务器(其中有码头工人守护进程)

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

Can you please help me for configuring the jenkins docker build publish plugin. I have setup artifactory for docker repo and trying to push image build from github docker file.

Following is the error I am getting :

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

解决方案

It is not related with Jenkins Docker build and publish plugin, see source code DockerBuilder.java, it will execute the docker command directly.

If you artifactory server (https://artifactory.corp.inmobi.com) is not official CA certificated, please check remote access to a private docker-registry to enable it in your jenkins server (which has docker daemon)

Or ask your IT admin to apply official CA certification for https://artifactory.corp.inmobi.com

这篇关于在泊坞窗误差建设发布插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆