Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-39952

"Registry credentials" is not working with a private docker registry

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

        Chi created issue -

        The screenshot was outdated, configuration is done in each job

        Carlos Sanchez added a comment - The screenshot was outdated, configuration is done in each job
        Carlos Sanchez made changes -
        Resolution New: Fixed [ 1 ]
        Status Original: Open [ 1 ] New: Closed [ 6 ]

        Carlos Sanchez added a comment - There are more docs linked to https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/chapter-docker-build-publish.html

        Chi added a comment -

        Thanks Carlos!
        If this is true, the "Registry credentials" is not working with a private docker registry. The error message is pasted below.

        $ docker push ****.io/docker-abc
        The push refers to a repository [****]
        4f77f877cd62: Preparing
        290efca864d1: Preparing
        a93e5549dca1: Preparing
        0459986018de: Preparing
        no basic auth credentials

        Chi added a comment - Thanks Carlos! If this is true, the "Registry credentials" is not working with a private docker registry. The error message is pasted below. $ docker push ****.io/docker-abc The push refers to a repository [****] 4f77f877cd62: Preparing 290efca864d1: Preparing a93e5549dca1: Preparing 0459986018de: Preparing no basic auth credentials
        Chi made changes -
        Summary Original: There is no "Configure Docker Registry: CloudBees Docker Build and Publish" section in Jenkins/Configure System New: "Registry credentials" is not working with a private docker registry

        Chi added a comment -

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

        Chi added a comment - Follow up with my question, and change the issue title accordingly. Thanks for helping!
        Chi made changes -
        Resolution Original: Fixed [ 1 ]
        Status Original: Closed [ 6 ] New: Reopened [ 4 ]

        Ryan Currah added a comment - - edited

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

        Ryan Currah added a comment - - edited We thought we could use it for our private registry turns out this is not the case. As Jenkins Enterprise customers we would love to be able to specify which registry the credentials are for.

        Ryan Currah added a comment - - edited

        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. 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?

        Ryan Currah added a comment - - edited 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. 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?

          csanchez Carlos Sanchez
          nkcfan Chi
          Votes:
          5 Vote for this issue
          Watchers:
          8 Start watching this issue

            Created:
            Updated: