-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Linux
I have a block in my pipeline script like the following:
docker.withRegistry("http://ourhost:5100", params.JP_DockerMechIdCredential) { def image = docker.build("com.att.sharedservices/tomee-uslmonitor") image.push 'latest' }
Before this block of code, I extracted the username and password from the credential, and they are correct.
In the log, I watched it build the image, tag it, but then when it tried to push it, it failed to authenticate. I didn't see a "docker login" command line in the log.
I then tried to manually run the docker commands from the shell, on the same box the job is running on, starting with "docker login". That entire process worked.
I then reran my job, and it also worked.
I then moved my "~/.docker/config.json" file out of the way and reran my job, and it failed to authenticate again. It's just not attempting "docker login".
- duplicates
-
JENKINS-38018 withDockerRegistry fails to authenticate with DockerHub
-
- Resolved
-
[JENKINS-41051] withRegistry is not doing a "docker login"
Component/s | New: docker-workflow-plugin [ 20625 ] | |
Component/s | Original: docker-plugin [ 18724 ] |
Comment |
[ Docker 1.17+ no longer supports ~/.dockercfg so jenkins needs to create ~/.docker/config.json from now on. https://github.com/moby/moby/commit/18c9b6c6455f116ae59cde8544413b3d7d294a5e ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |