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

"Docker - Delete unused manifests and images" task deletes digest manifests referenced by other manifests

    XMLWordPrintable

    Details

    • Notability:
      2

      Description

      SYMPTOM:

      Running Docker - Delete unused manifests and images task deleted the manifest files which are needed for multi-architecture image.

      REPRODUCE STEPS:

      1. Enable docker buildx good ref
      2. Execute below, after populating "_DOCKER_REPO":
        docker buildx build --push --platform linux/arm/v7,linux/amd64 --tag ${_DOCKER_REPO%/}/buildx-test/multiarch-example:buildx-latest .
        
      3. Run "Docker - Delete unused manifests and images" task

      EXPECTED BEHAVIOUR:

      As per NEXUS-18546, multi-arch should be supported so that this task should not delete any digest manifests under the multiarch-example, because the "build-latest" tag is using those.

      ACTUAL BEHAVIOUR:

      Before running the task:

      After running the task:

      The org.sonatype.nexus.repository.docker.internal.orient.DockerGCFacetImpl#handleV2Assets does not look checking the fat manifest to find in-use digest manifests.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mallen Mick Allen
              Reporter:
              hosako Hajime Osako
              Last Updated By:
              Peter Lynch Peter Lynch
              Team:
              NXRM - Groot
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title