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

Unable to connect to private repository on dockerhub

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.0, 3.3.1
    • Fix Version/s: 3.6.0
    • Component/s: Docker
    • Labels:

      Description

      Steps to reproduce:

      • Set up a private repository on docker hub and add an image to it.
      • Proxy Dockerhub, and add HTTP User authentication.
      • Attempt to pull the image from your private repository, it fails:
        ericdcobb@Erics-MacBook-Pro ~/d/s/nexus-internal (master) [1]> docker pull 192.168.1.46:18078/ericdcobb/test:myapp
        Pulling repository 192.168.1.46:18078/ericdcobb/test
        Error: image ericdcobb/test:myapp not found
        
        

      If I add a basic auth header to the retrieve bearer token http request here: https://github.com/sonatype/nexus-internal/blob/master/private/plugins/nexus-repository-docker/src/main/java/org/sonatype/nexus/repository/docker/internal/DockerProxyFacetImpl.java#L420 then the request succeeds.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              moncef Moncef Ben-Soula
              Reporter:
              ecobb Eric Cobb
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Formats
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title