Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-25912

Docker pull from Docker Hub fails due to case sensitivity HTTP headers handling

    XMLWordPrintable

    Details

    • Location:
      External

      Description

      Problem Description

      Docker pull requests fail due to a change in Docker Hub behavior. Now Docker Hub  HTTP response headers return in lower case, for example, 'content-type' instead of 'Content-Type', causing Artifactory to fail to download and cache Docker images from Docker Hub.

      Steps to reproduce:

      1. Set up a remote repo to Docker Hub (use default settings).
      2. Try to pull an image from the remote repo, for e.g.: $docker pull {registry}/docker-remote/alpine:3.7

       Expected Behavior:

      $docker pull requests from the remote repository that proxies Docker Hub should be successful.

      Observed Behavior:

      $docker pull request fails with: 

      error pulling image configuration: unknown blob
      

      Sample error in the Artifactory logs:

      2021-05-18T10:16:45.013Z [jfrt ] [ERROR] [310114d0b2cc0a47] [.DockerV2RemoteRepoHandler:516] [http-nio-8081-exec-8] - Error occurred while trying to download manifest docker-remote-cache/library/alpine/3.7/manifest.json : Failed to retrieve resource docker-remote-cache:: Expected a file but found a folder, at: docker-remote-cache:
      

      Workaround:

      You can't work around this issue by changing any of the remote repository configurations.

      The only way to fix this behavior is to upgrade the Artifactory server to the version with the fix (See Fix Version/s).

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mattheww Matthew Wang
            Votes:
            14 Vote for this issue
            Watchers:
            20 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

                Connection: RTFACT Sync
                RTMID-25913 -
                SYNCHRONIZED
                • Last Sync Date: