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

Unable to connect to private repository on dockerhub

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.6.0
    • 3.1.0, 3.3.1
    • Docker

    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

              moncef Moncef Ben-Soula
              ecobb Eric Cobb [X] (Inactive)
              Peter Lynch Peter Lynch
              Nexus - Formats
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                tigCommentSecurity.panel-title