Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-9374

docker push without authentication errors rather than prompts for authentication

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0-m6, 3.0.0-m7
    • Fix Version/s: None
    • Component/s: Docker, Documentation
    • Labels:
      None
    • Environment:
      (MacOSX)

      Description

      I tried to push to a docker hosted repository but had cleared out my ~/.docker/config.json.
      This resulted in an error:

      bash-3.2$ docker push 192.168.1.3:18082/hello-world
      The push refers to a repository [192.168.1.3:18082/hello-world] (len: 1)
      975b84d108f1: Image push failed
      Head https://192.168.1.3:18082/v2/hello-world/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422...: no basic auth credentials

      In m5, you would be prompted to authenticate.

      Alin Dreghiciu questioned if this would be the same in the 1.6 client so I used brew to back test and it is pretty much the same:

      bash-3.2$ docker push 192.168.1.3:18082/hello-world
      The push refers to a repository [192.168.1.3:18082/hello-world] (len: 1)
      975b84d108f1: Image push failed
      FATA[0000] Head https://192.168.1.3:18082/v2/hello-world/blobs/sha256:a3ed95caeb02ffe68cdd9fd84406680ae93d633cb16422d00e8a7c22955b46d4: no basic auth credentials

      No surprise, push works if you use docker login first. To me, it was much cleaner to have the auth prompted. It is also regression (tho could be considered "unofficial regression" as m5 is not an official release). That is also the reason for bug vs improvement.
      NX2 does not have docker so does not have this issue.

      Kelly Robinson suggested a bug for eval/triage. This is that ticket.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jhesse Jeffry Hesse
              Reporter:
              jtom Joe Tom
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title