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

docker pull does not work with older docker clients when trying to pull images that were pushed with a newer docker client.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.2
    • Component/s: Docker
    • Labels:
    • Regression:
      Yes

      Description

      docker pull not working with older docker clients (1.9.0 and 1.8.3) when trying to pull images that were pushed with a newer docker client like 1.10.3. Please note that this issue happens when a remote docker repo in Artifactory instance A is proxying a local docker repo in Artifactory instance B. Artifactory version is 4.8.0 on both Artifactory instance A and instance B.

      The docker pull works fine with older clients (1.9.0 and 1.8.3) if you are pulling images directly from the local docker repo in Artifactory instance B. But as mentioned earlier if we try pulling the same image from the remote docker repo in Artifactory instance A, then it fails with a 400 error and in the docker debug log it complains about unsupported schema version. Below is the error in the docker debug log:

      DEBU[0100] Calling POST /v1.21/images/create
      INFO[0100] POST /v1.21/images/create?fromImage=docker.artifactory.com%3A5005%2Falpine%3Alatest
      DEBU[0100] Trying to pull docker.artifactory.com:5005/alpine from https://docker.artifactory.com:5005 v2
      DEBU[0100] Pulling tag from V2 registry: "latest"
      DEBU[0100] Error trying v2 registry: unsupported schema version 2 for tag "latest"

      The 'artifactory.log' shows the error unsupported docker v1 repository request:

      2016-06-02 16:45:02,520 [http-nio-8082-exec-5] [ERROR] (o.a.a.d.r.DockerResource:130) - Unsupported docker v1 repository request for 'docker-remote'

      docker client output:

      artifactory@docker:~$ docker pull docker.artifactory.com:5005/alpine
      Using default tag: latest
      Pulling repository docker.artifactory.com:5005/alpine
      Error: Status 400 trying to pull repository alpine: "{\n \"errors\" : [

      {\n \"status\" : 400,\n \"message\" : \"Unsupported docker v1 repository request for 'docker-remote'\"\n }

      ]\n}"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                yinona Yinon Avraham
                Reporter:
                nihalc@jfrog.com Nihal Reddy Chinna Choudhary
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: