英文:
List all docker hub blobs using API
问题
以下是您要翻译的内容:
"Is it possible to list the digests of all the available blobs in a repo by using a variant of https://index.docker.io/v2/<repository>/blobs
?
Or is the only way to first identify the blob digest using the tag manifest https://index.docker.io/v2/<repository>/manifest/<tag>
?
Or is there any other way to list all blobs in a repo?"
英文:
Is it possible to list the digests of all the available blobs in a repo by using a variant of
https://index.docker.io/v2/<repository>/blobs
?
Or is the only way to first identify the blob digest using the tag manifest https://index.docker.io/v2/<repository>/manifest/<tag>
?
Or is there any other way to list all blobs in a repo?
答案1
得分: 0
没有来自Docker注册表或OCI规范的Blob列表API。可能会有一个注册表实现拥有它们自己的API。要查找Blob,您需要解析指向Blob的描述的清单。然而,有些清单可能没有标记,Blob将在清单之前被推送,Blob可能会在没有清单引用它们之后的一段时间内被删除。因此,从解析清单构建的任何列表可能会是一个部分列表。
英文:
There's no blob listing API from the docker registry or OCI specs. It's possible that a registry implementation would have their own API. To find blobs, you would need to parse manifests for descriptions pointing to blobs. However, some manifests may be untagged, blobs will be pushed before the manifest is pushed, and blobs may be deleted some time after no manifest references them. Therefore any list built from parsing manifests will likely be a partial list.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论