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

Docker Promote API fails for multi platform image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 7.17.4
    • Fix Version/s: 7.21.2, 6.23.25
    • Component/s: None
    • Labels:
    • Severity:
      High

      Description

      • Problem description: Docker promote API fails to promote images when used against a multiplatform image that has list.manifest.json under its tag. 
      • What is the expected behavior? All images should be able to be promoted when using the API
      • Steps to reproduce: 
        1. performed a docker pull for busybox and we get the multiplatform image. Under remote repository cache we see a folder library and under it a folder busybox which has the layer and a folder latest which contains the list.manifest.json

      2. Right click on the busybox folder, copy it to a docker-local repository. (Performing this step as pushing image from local machine does not push multi platform image)

      3. Ran the below command to call docker promote API:
      curl -v -i uxxx:yyy X POST "https://<art-ip>/artifactory/api/docker/docker-local/v2/promote" -H "Content-Type: application/json" -d '{"targetRepo":"test-docker-local","dockerRepository":"busybox", "tag" : "latest", "targetTag" : "new_test", "copy":true}'

      We get the error:
      {
      "errors" : [

      { "status" : 404, "message" : "Unable to find 'busybox/latest'" }

      ]

        Attachments

          Activity

            People

            Assignee:
            asafz Asaf Zalcman
            Reporter:
            prasannan Prasanna Narayana
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Sync Status

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