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

Fails to use supplied credentials when pushing to Docker Hub

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 1.609.1
      Docker Build Step Plugin 1.28
      Docker commons Plugin 1.2 (also occurs with 1.1)

      I'm using an external docker REST endpoint. I can create, tag, remove, etc images.

      When I attempt to pull or push images from a private repository on Docker Hub, I get the following errors:

      [Docker] INFO: Pulling image oneplace/edu-api:latest
      [Docker] INFO:

      Unknown macro: {"status"}

      [Docker] INFO: {"errorDetail":

      Unknown macro: {"message"}

      ,"error":"Error: image oneplace/edu-api:latest not found"}
      [Docker] ERROR: command 'Pull image' failed: {"errorDetail":

      Unknown macro: {"message"}

      ,"error":"Error: image oneplace/edu-api:latest not found"}

      or

      {{[Docker] INFO: Sucessfully created image oneplace/edu-ui:latest
      [Docker] INFO: Pushing image oneplace/edu-ui
      [Docker] INFO:

      Unknown macro: {"status"}

      [Docker] INFO: {"status":"Buffering to Disk","progressDetail":{},"id":"0b16d5e541a6"}{"status":"Image push failed","progressDetail":{},"id":"0b16d5e541a6"}{"errorDetail":

      Unknown macro: {"message"}

      ,"error":"Error pushing to registry: Authentication is required."}
      [Docker] INFO: Done pushing image oneplace/edu-ui}}

      In either case, the cause seems to be failure to authenticate. The credentials for repository are provided when configuring Push Image, but they don't seem to be used.

            vjuranek vjuranek
            woz5999 J Woz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: