gpt4 book ai didi

html - 在我的网站上显示Docker镜像列表

转载 作者:行者123 更新时间:2023-12-02 19:25:51 25 4
gpt4 key购买 nike

我希望我的网站显示docker存储库中可用的所有图像。是否可以以某种方式插入它,以便它自动检测新图像并将其在网站上列出。

最佳答案

在官方文档中,在Docker Registry HTTP API V2中的副标题list all of the tags下,他们解释了您所需要的内容(如果我正确理解了这个问题,请告诉我):

It may be necessary to list all of the tags under a given repository. The tags for an image repository can be retrieved with the following request:

GET /v2//tags/list The response will be in the following format:

200 OK Content-Type: application/json

 {
"name": <name>,
"tags": [
<tag>,
...
]
}

For repositories with a large number of tags, this response may be quite large. If such a response is expected, one should use the pagination.

关于html - 在我的网站上显示Docker镜像列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56265279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com