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

withDockerRegistry fails to login with complex password

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • docker-workflow-plugin
    • None
    • Jenkins 2.134
      Docker Pipeline 1.17

      Jenkinsfile:

          stage('Deliver') {
            steps {
              withDockerRegistry([credentialsId: 'docker-creds', url: '']) {
                sh "docker push imagename"
              }
            }
          }
      

      Error:

      $ docker login -u username -p ******** https://index.docker.io/v1/
      WARNING! Using --password via the CLI is insecure. Use --password-stdin.
      Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized: incorrect username or password
      

      Workaround:

      Change Docker Hub password from something complex (e.g. "]GT~XMRZwWc6]dUg:NMs") to something very simple (e.g. "insecurepass"). Using a simple password that is very long (e.g. "verylongpasswordhere") works fine too.

      `docker login` using complex password from the CLI works just fine.

            Unassigned Unassigned
            gtirloni Giovanni Tirloni
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: