Skip to content

How can we delete one manifest by tag #1566

@qinghua

Description

@qinghua

Hi, I'm using docker 1.10.3 and registry 2.3.0. The following steps show an unexpected scenario:

  1. build a docker image with tag 1, then push
  2. commit some code and build a docker image with tag 2, then push
  3. revert the code in step 2 and build a docker image with tag 3, then push. Therefore the digest will be same as step 1 since the image contents are same.
  4. in order to delete image with tag 1, we have to call the DELETE API /v2//manifests/ by digest which is same as tag 3. As a result, tag 3 will be deleted as well.

How can we handle this scenario? What I could suggest is to add a "delete manifest by tag API".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions