如何解决无法从Docker私有注册表中删除标签
我有两个图像ubuntu标签,我试图删除version1但得到404响应
# curl myregistry:15000/v2/ubuntu/tags/list
{"name":"ubuntu","tags":["latest","version1"]}
我正在提取摘要
# curl --silent -I myregistry:15000/v2/ubuntu/manifests/version1
HTTP/1.1 200 OK
Content-Length: 5589
Content-Type: application/vnd.docker.distribution.manifest.v1+prettyjws
Docker-Content-Digest: sha256:53c6e2b7859190e5624fcf5f4def64b28098b3c057a8c814f1ad54cbc283d470
Docker-Distribution-Api-Version: registry/2.0
Etag: "sha256:53c6e2b7859190e5624fcf5f4def64b28098b3c057a8c814f1ad54cbc283d470"
我的标记版本1的删除语法
curl -v -H "Accept: application/vnd.docker.distribution.manifest.v2+json" -X DELETE myregistry:15000/v2/ubuntu/manifests/sha256:53c6e2b7859190e5624fcf5f4def64b28098b3c057a8c814f1ad54cbc283d470
* About to connect() to myregistry port 15000 (#0)
* Trying 10.10.10.168...
* Connected to myregistry (10.10.10.168) port 15000 (#0)
> DELETE /v2/ubuntu/manifests/sha256:53c6e2b7859190e5624fcf5f4def64b28098b3c057a8c814f1ad54cbc283d470 HTTP/1.1
> User-Agent: curl/7.29.0
> Host: myregistry:15000
> Accept: application/vnd.docker.distribution.manifest.v2+json
>
< HTTP/1.1 404 Not Found
< Content-Type: application/json; charset=utf-8
< Docker-Distribution-Api-Version: registry/2.0
< Date: Thu,29 Oct 2020 16:36:40 GMT
< Content-Length: 70
<
{"errors":[{"code":"MANIFEST_UNKNOWN","message":"manifest unknown"}]}
* Connection #0 to host myregistry left intact
我收到404,但仍然看到标签
# curl myregistry:15000/v2/ubuntu/tags/list
{"name":"ubuntu","version1"]}
我在这里错过了什么吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。