Cheers guys,

I am fiddling with an issue I have described at the devops stackexchange 
fairly closely, I hope. I feel like I'm arriving where I should ask in this 
mailinglist to see if I'm on the right track.

In a nutshell: I am running a jenkins/jenkins container (more about the 
used tags below) as "Docker in Docker". So my Jenkins is a Docker container 
and my pipelines will instruct Jenkins to run more Docker containers.

Before we dive into pipelines and everything, I run into an issue with 
"docker login" to our Nexus. Do not worry, I don't think this will be a 
Nexus issue:

[root@909fb3a3d52c .docker]# docker login https://nexus:port
Username: jenkins
Password:
Login Succeeded
[root@909fb3a3d52c .docker]# pwd
/root/.docker
[root@909fb3a3d52c .docker]# cat config.json
{
    "auths": {
        "https://our.nexus.internal:<endpoint>": {
            "auth": "<CORRECT base64 hash>"
        }
    }

So I would assume the login succeeded, juding by both the message and the 
correct base64 hash in the config file.

However:
[root@909fb3a3d52c .docker]# docker pull https://nexus.port/myImage:myTag
Error response from daemon: Get https://nexus:port/v2/myImage/manifests/myTag: 
no basic auth credentials

This will also be the result of any pipeline execution of course:

+ docker pull https://our.nexus.internal:<endpoint>/myImage:myTag

Error response from daemon: Get Error response from daemon: Get 
https://our.nexus.internal:<endpoint>/v2/myImage/manifests/myTag: 
no basic auth credentials

script returned exit code 1

The curious thing:
If I run a "docker-compose up" with a compose file using the same image it 
pulls fine. If I use the debian based jenkins/jenkins:latest instead 
of jenkins/jenkins:lts-centos7 it pulls fine as well.

Pls go ahead and check the details on those two on the devops stackexchange 
question: 
https://devops.stackexchange.com/questions/11981/jenkins-docker-login-doesnt-seem-to-persist-docker-pull-wont-work-but-docke

So I am assuming something about the lts-centos7 image tag?

Maybe you guys can shine some additional light, I am uncertain where to 
look further, but strongly willing to investigate :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3ca19a18-3bde-4e9c-bc7d-6d352b49bc88o%40googlegroups.com.

Reply via email to