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

When HTTP Settings is configured with Repository Path and you practically use Subdomain, a corrupt Docker image is being deployed

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None

      Description

      Steps to reproduce:
      1. Select "Repository Path" in Artifactory UI --> HTTP Settings page
      2. Setup a reverse proxy and practically use Subdomain method

      You will be able to pull images, for example:

      $ docker pull docker.avivb/php-zendserver
      Using default tag: latest
      latest: Pulling from php-zendserver
      8ee29e426c26: Pull complete 
      6e83b260b73b: Pull complete 
      e26b65fd1143: Pull complete 
      40dca07f8222: Pull complete 
      b420ae9e10b3: Pull complete 
      8497cfbaf872: Pull complete 
      b65b83a9fd93: Pull complete 
      f0ffd0fada97: Pull complete 
      f1b836e1ecb7: Pull complete 
      8ebecda9572e: Pull complete 
      0a0831dabec7: Pull complete 
      47f9292def20: Pull complete 
      035efdb89f13: Pull complete 
      f56919170f07: Pull complete 
      6e1b07e36ec6: Pull complete 
      Digest: sha256:c1b8c9a209be647fdf1431c4fd5afc0f9fe91558f85aec7737a670d9bd0053c0
      Status: Downloaded newer image for docker.avivb/php-zendserver:latest
      

      But, pushing an image will fail with error "blob upload unknown"

      $ docker push docker.avivb/php-zendserver
      The push refers to repository [docker.avivb/php-zendserver]
      b552d18faae5: Pushing [==================================================>]  5.632kB
      1889548efea6: Pushing  3.072kB
      69f334954a35: Pushing [==================================================>]  11.26kB
      5e27f65adf48: Pushing [==================================================>]  40.45kB
      8a514b38b0a4: Retrying in 14 seconds 
      264370e793d5: Waiting 
      782721b946b9: Waiting 
      06c5bb2b1184: Waiting 
      07c95c282da9: Waiting 
      397dd90184f7: Waiting 
      bcff331e13e3: Waiting 
      2166dba7c95b: Waiting 
      5e95929b2798: Waiting 
      c2af38e6b250: Waiting 
      0a42ee6ceccb: Waiting 
      blob upload unknown
      

      However, Artifactory receives the layers but in a wrong path and convention:

      Notice the duplicate repo name (docker-local/docker-local/img_name/_uploads)

      The only way to make it work is to go back to the HTTP Settings page and change the method to Subdomain.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              avivb Aviv Blonder
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: