[JIRA] (JENKINS-39952) "Registry credentials" is not working with a private docker registry

4 views
Skip to first unread message

nkcfan1@gmail.com (JIRA)

unread,
Nov 23, 2016, 6:12:02 PM11/23/16
to jenkinsc...@googlegroups.com
nkcfan nkcfan updated an issue
 
Jenkins / Bug JENKINS-39952
"Registry credentials" is not working with a private docker registry
Change By: nkcfan nkcfan
Summary: There is no " Configure Docker Registry : CloudBees Docker Build and Publish credentials " section in Jenkins/Configure System is not working with a private docker registry
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

nkcfan1@gmail.com (JIRA)

unread,
Nov 23, 2016, 6:13:01 PM11/23/16
to jenkinsc...@googlegroups.com
nkcfan nkcfan reopened an issue
 

Follow up with my question, and change the issue title accordingly.
Thanks for helping!

Change By: nkcfan nkcfan
Resolution: Fixed
Status: Closed Reopened

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:20:01 AM2/21/17
to jenkinsc...@googlegroups.com
Ryan Currah edited a comment on Bug JENKINS-39952
 
Re: "Registry credentials" is not working with a private docker registry
We thought we could use it for our private registry turns out this is not the case. We As Jenkins Enterprise customers we would love to be able to specify which registry the credentials are for.

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:20:01 AM2/21/17
to jenkinsc...@googlegroups.com

We thought we could use it for our private registry turns out this is not the case. We would love to be able to specify which registry the credentials are for.

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:25:01 AM2/21/17
to jenkinsc...@googlegroups.com

Another issue is that users keep selecting this option with invalid credentials and it breaks builds because it writes a file to /home/jenkins/.dockercfg with bad credentials and not everyone who uses that build slave cant pull images from docker.io. Is there some less persistent way to use the credentials?

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:27:04 AM2/21/17
to jenkinsc...@googlegroups.com
Ryan Currah edited a comment on Bug JENKINS-39952
Another issue is that users keep selecting this option with invalid credentials and it breaks builds because . Because it writes a docker credentials file to /home/jenkins/.dockercfg with bad credentials and not . Now no one can pull from docker.io because we are getting auth errors against docker.io in all the jobs now. Now everyone who uses that build slave cant pull images from docker.io. Is there some less persistent way to use insert the credentials on a per job basis ?

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:28:01 AM2/21/17
to jenkinsc...@googlegroups.com
Ryan Currah edited a comment on Bug JENKINS-39952
Another issue is that users keep selecting this option with invalid credentials and it breaks builds. Because it writes a docker credentials file to /home/jenkins/.dockercfg with bad credentials. Now no No one can pull from docker.io because we are getting auth errors against docker.io in all the jobs now. Now everyone who uses that build slave cant pull images from docker . io. Is there some less persistent way to insert the credentials on a per job basis?

ryan@currah.ca (JIRA)

unread,
Feb 21, 2017, 10:29:02 AM2/21/17
to jenkinsc...@googlegroups.com
Ryan Currah edited a comment on Bug JENKINS-39952
Another issue is that users keep selecting this option with invalid credentials and it breaks builds. Because it writes a docker credentials file to /home/jenkins/.dockercfg with bad credentials. No one can pull from docker.io because we are getting auth errors against docker.io in all the jobs now. Now everyone Everyone who uses that build slave cant pull images because of one person's misconfiguration ina job . Is there some less persistent way to insert the credentials on a per job basis?

tenyo.grozev@gmail.com (JIRA)

unread,
Mar 15, 2017, 11:22:02 AM3/15/17
to jenkinsc...@googlegroups.com

The registry authentication stopped working for us after we upgraded from Docker 1.10 to 1.12, which now uses exclusively .docker/config.json instead of .dockercfg. This plugin only generates .dockercfg. As a workaround, I've logged in locally on the Docker host to generate the config.json.

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

rehab.s.hassanein@gmail.com (JIRA)

unread,
Apr 4, 2018, 1:31:02 AM4/4/18
to jenkinsc...@googlegroups.com

I went on for hours in circles just to fix this at the end by adding an execute shell step to do the following:

mv ~/.dockercfg ~/.dockercfg.old

This fixed my issue.

Thanks Ryan Currah for pointing out the exact issue with this file.

jenkins-ci.org@meneguello.com (JIRA)

unread,
Dec 11, 2019, 9:46:02 AM12/11/19
to jenkinsc...@googlegroups.com

Nearly 2020 and still having this issue.
I just succeeded by adding a shell step with docker login ... before the step

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jenkins-ci.org@meneguello.com (JIRA)

unread,
Dec 11, 2019, 12:37:02 PM12/11/19
to jenkinsc...@googlegroups.com
Bruno Meneguello edited a comment on Bug JENKINS-39952
Nearly 2020 and still having I'm using this issue with Kubernetes cloud and a docker-dind image .
I just succeeded by adding a shell step with {{docker login ... before the step
. }}
Reply all
Reply to author
Forward
0 new messages