删除远程dockerregistry上的docker库

鉴于dockerpipe理员注册pipe理多个docker仓库,我该如何删除其中一个仓库?

就我而言,

curl -X GET localhost:5000/v2/_catalog {"repositories":["repo1", "repo2", "repo3"]} 

我想删除存储库repo1使_catalog看起来像

 curl -X GET localhost:5000/v2/_catalog {"repositories":["repo2", "repo3"]} 

我们可以看到repo1似乎只有默认的"latest"图片标签。

 curl -X GET localhost:5000/v2/repo1/tags/list {"name":"repo1","tags":["latest"]} 

(也许这影响到可以删除repo1 ?)


我努力了…

以下命令返回404 page not found

 curl -X DELETE localhost:5000/v1/repositories/repo1 curl -X DELETE localhost:5000/v2/repositories/repo1 curl -X DELETE localhost:5000/v2/repo1 

下面返回{"errors":[{"code":"UNSUPPORTED","message":"The operation is unsupported."}]}

 curl -X DELETE localhost:5000/v2/repo1/manifests/latest 

运用

dockerregistry是registry/2.0

 curl -vX GET localhost:5000/v2/ < HTTP/1.1 200 OK ... < Docker-Distribution-Api-Version: registry/2.0 ... 

 /bin/registry github.com/docker/distribution v2.4.1 

错误{"errors":[{"code":"UNSUPPORTED","message":"The operation is unsupported."}]}表示您没有在registry服务器中启用删除。 请参阅此文档以了解如何启用该选项。 在您的registryconfiguration中,您可以添加以下部分:

 delete: enabled: true