Details
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
- is related to
-
NEXUS-26737 Deleting manifest with Docker API does not delete all tags
-
- New
-
- relates
-
NEXUS-10998 delete image and all tags
-
- New
-
- testing discovered
-
NEXUS-13200 Deleting docker image leaves dangling image of same ID
-
- Closed
-
- mentioned in
-
Page Loading...