2

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
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
Vivek Pemawat
  • 123
  • 1
  • 3
  • 8
  • 1
    does it work if u use `docker` command directly to push to artifactory ? better to use certificated CA for your domain as well to avoid https problem. – Larry Cai Jan 08 '15 at 02:14

1 Answers1

2

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

Community
  • 1
  • 1
Larry Cai
  • 55,923
  • 34
  • 110
  • 156