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 Tag: The operation is unsupported. #381

Closed
pcace opened this issue May 22, 2024 · 3 comments
Closed

Delete Tag: The operation is unsupported. #381

pcace opened this issue May 22, 2024 · 3 comments

Comments

@pcace
Copy link

pcace commented May 22, 2024

HI there, waht can be the reason not to be able to delete images via the ui?
whenever i click on delete on a tag, i get this error Message:

{"errors":[{"code":"UNSUPPORTED","message":"The operation is unsupported."}]}
I run the docker-registry-ui with these env variables:

SINGLE_REGISTRY=true
REGISTRY_TITLE=Docker Registry UI
DELETE_IMAGES=true
SHOW_CONTENT_DIGEST=true
NGINX_PROXY_PASS_URL=http://registry:5000
SHOW_CATALOG_NB_TAGS=true
CATALOG_MIN_BRANCHES=1
CATALOG_MAX_BRANCHES=1
TAGLIST_PAGE_SIZE=100
REGISTRY_SECURED=false
CATALOG_ELEMENTS_LIMIT=1000
REGISTRY_STORAGE_DELETE_ENABLED=true

My private docker registry configuration

version: 0.1
log:
  fields:
    service: registry
storage:
  cache:
    blobdescriptor: inmemory
  filesystem:
    rootdirectory: /var/lib/registry
http:
  addr: :5000
  headers:
    X-Content-Type-Options: [nosniff]
health:
  storagedriver:
    enabled: true
    interval: 10s
    threshold: 3

image

System information

  • OS: Debian

  • Browser:

    • Name: Chrome
    • Version: Version 125.0.6422.60 (Offizieller Build) (64-Bit)
  • Docker registry UI:

    • Version: joxit/docker-registry-ui:main
    • Server: docker
    • Docker version: Docker version 26.1.2, build 211e74b
    • Docker registry ui tag: main
    • OS/Arch: Debian12 /amd64
@tiko2302
Copy link

Having the same problem

@tiko2302
Copy link

I found the solution:

The error code 405 indicates that deletion is not enabled for the registry or the registry is configured to be a pull-through cache as stated in the documentation.

So you have to enable deletion on the registry by doing one of the following things:

  • If you configure your registry using env variables in the docker-compose.yml set the variable:
    REGISTRY_STORAGE_DELETE_ENABLED: 'true'
  • If you use a config.yml (like you do) add the following piece of code to your config.yml which is documented here
delete:
 enabled: true

After that restart the container and it should work.

Please keep in mind: This does not delete the data from the registry as far as I understood see #147 for more information

@pcace
Copy link
Author

pcace commented May 27, 2024

Thanks a lot! That seems to fix it for me!

@pcace pcace closed this as completed May 27, 2024
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

2 participants