docker_registry2
docker_registry2 copied to clipboard
rmrepo does not exists
https://github.com/deitch/docker_registry2#rmrepo
This is not implemented?
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?