List all docker hub blobs using API.

huangapple go评论65阅读模式
英文:

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/&lt;repository&gt;/blobs ?

Or is the only way to first identify the blob digest using the tag manifest https://index.docker.io/v2/&lt;repository&gt;/manifest/&lt;tag&gt; ?

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.

huangapple
  • 本文由 发表于 2023年5月14日 15:49:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76246398.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定