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

Nexus docker registry delete REST api partially deletes an image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.0, 3.2.1, 3.3.1
    • Fix Version/s: 3.4.0
    • Component/s: Docker
    • Labels:
    • Environment:
      Red Hat Enterprise Linux Server release 6.8
    • Story Points:
      3
    • Release Note:
      Yes
    • Sprint:
      Formats Team - Sprint 95, Formats Team - Sprint 96

      Description

      Deleted a docker image through docker registry REST api. The image was deleted successfully from Nexus UI, but still lists in the GET /v2/<name>/tags/list API.
      No workaround exists.

      Steps:
      Get image digest:

      curl -v -u '<userid>:<passwd>' -H 'Accept:application/vnd.docker.distribution.manifest.v2+json' https://<host>:<port>/v2/testimg/manifests/1.0.0
      

      From response header:
      Docker-Content-Digest: sha256:0c2e8350966123c27427152c66024d280e8d60a01ca37b3bac84b61882b6f832

      Delete image

      curl -v -X DELETE -u '<userid>:<passwd>' https://<host>:<port>/v2/testimg/manifests/sha256:0c2e8350966123c27427152c66024d280e8d60a01ca37b3bac84b61882b6f832
      

      get response: HTTP/1.1 202 Accepted

      At this point image has been deleted from Nexus UI. But below list tags call still return the version

      curl -u '<userid>:<passwd>' https://<host>:<port>/v2/testimg/tags/list
      {"name":"testimg","tags":["1.0.0"]}
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              ds683w Devinder Singh
              Last Updated By:
              Peter Lynch
              Team:
              Nexus - Formats
              Votes:
              6 Vote for this issue
              Watchers:
              14 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title