简体   繁体   English

Docker私有信任注册表

[英]Docker private trusted registry

I want to delete images in docker private trusted registry.How we can see the available images and how we can delete the older images ? 我想删除docker private trusted registry中的图像。如何查看可用图像以及如何删除旧图像?

I'm using registry:2 我正在使用注册表:2

Thanks in advance. 提前致谢。

From issue 1529 , you can see your images with: 问题1529开始 ,您可以看到以下图像:

curl -k -u 'docker:sdf' -X GET https://localhost:5000/v2/_catalog

For each image, you can list its tags: 对于每个图像,您可以列出其标记:

curl -k -u 'docker:sdf' -X GET https://localhost:5000/v2/bkf/ebbg/tags/list

Finally, for a tag, you can query its manifest: 最后,对于标记,您可以查询其清单:

curl -k -I -H Accept:\* https://<some_url_or_ip>:5000/v2/<image_name>/manifests/<tag_name>

( Steven Iveson ) 史蒂文艾弗森

Use the value of either of these headers (including the sha256: part if present) - they should be the same: 使用这些标题中的任何一个的值(包括sha256:部分,如果存在) - 它们应该是相同的:

  • Docker-Content-Digest
  • Etag

And you need the manifest to delete an image 需要清单来删除图像

DELETE /v2/<name>/manifests/<reference>

curl -k -v -u 'docker:sdf' -X DELETE https://localhost:5000/v2/<name>/manifests/<reference>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM