从停靠中心api端点https://hub.docker.com/v2/namespaces/{namespace}/repositories/{repository}/tags/{tag}中,我们可以获得与特定图像标记相关的信息。
{
"id": 0,
"images": {
"architecture": "string",
"features": "string",
"variant": "string",
"digest": "string",
"layers": [],
"os": "string",
"os_features": "string",
"os_version": "string",
"size": 0,
"status": "active",
"last_pulled": "2021-01-05T21:06:53.506400Z",
"last_pushed": "2021-01-05T21:06:53.506400Z"
},
"creator": 0,
"last_updated": "2021-01-05T21:06:53.506400Z",
"last_updater": 0,
"last_updater_username": "string",
"name": "string",
"repository": 0,
"full_size": 0,
"v2": "string",
"status": "active",
"tag_last_pulled": "2021-01-05T21:06:53.506400Z",
"tag_last_pushed": "2021-01-05T21:06:53.506400Z"
}然而,这些字段并没有得到很好的记录。last_updated、tag_last_pushed和last_pushed字段之间有什么区别,它们真正的含义是什么?
发布于 2022-09-06 07:12:04
last_pushed是最后一次将带有任何标记的图像推送到回购程序中,但tag_last_pushed是最后一次将带有API中特定标记的图像推送到repo。
https://stackoverflow.com/questions/73616217
复制相似问题