Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete all tags when run delete repo tag #15

Open
JackZhai2018 opened this issue Jan 8, 2020 · 2 comments
Open

delete all tags when run delete repo tag #15

JackZhai2018 opened this issue Jan 8, 2020 · 2 comments

Comments

@JackZhai2018
Copy link

delete all tags of the repo when run delete repo tag
./docker_reg_tool https://registry.my.domain delete some-repo some-tag

@byrnedo
Copy link
Owner

byrnedo commented Jul 17, 2022

@JackZhai2018 sorry, I don't get you. Is it deleting all tags by mistake?

@tginer
Copy link

tginer commented Jan 11, 2024

hi Donal, yes, the delete option is actually deleting all tags in a repo instead of a single tag.

Having for example:

curl -ksS -u user:psswd https://<registry>:<port>/v2/demo/image/tags/list | jq
{
  "name": "demo/image",
  "tags": [
    "signed",
    "unsigned"
  ]
}

executing

./docker_reg_tool https://<registry>:<port> delete demo/image unsigned
DIGEST: sha256:e97314d049510baa9d1021ac848f0826be1310cc870e6bd57aa3ef41cf8a0cc4
Successfully deleted

Automatically if I now check /tags/list:

curl -ksS -u user:psswd https://https://<registry>:<port>/v2/demo/image/tags/list | jq
{
  "name": "demo/image",
  "tags": null
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants