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

Failed to delete: 405 #19

Closed
dsoria opened this issue Apr 9, 2021 · 4 comments
Closed

Failed to delete: 405 #19

dsoria opened this issue Apr 9, 2021 · 4 comments

Comments

@dsoria
Copy link

dsoria commented Apr 9, 2021

Hi!
Hoping this script can help me delete some tags.

I tried delete and the error is:

DIGEST: sha256:b32067df1e504742bdea7c169916ddc51b848856f0d02c7b1c6a99c6533e5921
Failed to delete: 405

Regards

@jasondalysb
Copy link

Same result

@samjking
Copy link

I was getting the same result until I started the registry with -e REGISTRY_STORAGE_DELETE_ENABLED="true"

After that, all was fine

@ventz
Copy link

ventz commented Apr 6, 2022

@samjking Thanks for posting that!
For anyone else, there is also config file option (which by default is turned off):

storage:
  delete:
    enabled: true

When you issue a delete, if you do not get a Successfully deleted message, make sure to list out the repos for tags:

Example

./docker_reg_tool https://registry.fqdn.tld list
repo1/image1
repo2/image2
...

# And you issue a delete:
./docker_reg_tool https://registry.fqdn.tld delete repo1/image1

# If you don't get "Successfully deleted", list out the tags#
./docker_reg_tool https://registry.fqdn.tld list repo1/image1
dev

# As an example, let's say you have only one and it's called "dev" in this case
# Then delete the tag(s):
./docker_reg_tool https://registry.fqdn.tld delete repo1/image1 dev
Successfully deleted

# At this point you will still see the repo due to garbage collection not kicking in:
./docker_reg_tool https://registry.fqdn.tld list
repo1/image1
repo2/image2

@byrnedo
Copy link
Owner

byrnedo commented Jul 17, 2022

Updated the readme.

@byrnedo byrnedo closed this as completed Jul 17, 2022
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

5 participants