Joxit / docker-registry-ui

The simplest and most complete UI for your private registry
https://joxit.dev/docker-registry-ui/
GNU Affero General Public License v3.0
2.6k stars 323 forks source link

Delete Tag: The operation is unsupported. #381

Closed pcace closed 6 months ago

pcace commented 6 months ago

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

timkolloch commented 6 months ago

Having the same problem

timkolloch commented 6 months ago

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:

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 commented 6 months ago

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