docker_registry2 icon indicating copy to clipboard operation
docker_registry2 copied to clipboard

rmrepo does not exists

Open matti opened this issue 6 years ago • 1 comments

https://github.com/deitch/docker_registry2#rmrepo

This is not implemented?

matti avatar Mar 10 '19 18:03 matti

Unfortunately not. The README was updated at one point as part of adding several features, but this one didn't make it at the time.

It isn't all that hard to do the actual delete, see https://docs.docker.com/registry/spec/api/#deleting-an-image

The harder part is that to delete a repo, you actually need to delete it by digest, which means you need to know at least one tag (or the content digest, but that is circular), so you can get the Docker-Content-Digest header.

I guess we could use the tags() functionality and just use the first one?

Want to do a PR for it?

deitch avatar Mar 12 '19 03:03 deitch