无法通过 API return docker 存储库图像列表

Can't return list of docker repository images through API

按照 https://docs.docker.com/v1.7/reference/api/docker-io_api/#list-library-repository-images 上的文档,我在将图像返回到多个存储库时遇到了一些问题。不知道是不是少了什么,或者有什么问题?

此示例有效,returns 校验和和 id 对象数组:https://index.docker.io/v1/repositories/library/ubuntu/images

但是 https://index.docker.io/v1/repositories/codacy/codacy-pylint/images returns 一个空数组

也许回购需要一些带有信息的文件?

估计你要把你的项目介绍给官方库。这里有更多关于如何执行此操作的信息:

Docker-library

您使用的是过时的api:https://docs.docker.com/v1.8/reference/api/docker-io_api/#list-library-repository-images

我试图寻找最后一个没有成功。

无论如何,这种行为是正确的,因为在 codacy-pylint 中你没有多个 Dockefile,你只有一个 Dockerfile 并在它们上应用标签。

对于 ubuntu 图像,涉及多个 Dockerfile,这就是为什么 URL returns 很多东西。

我假设你真正想要的是:https://index.docker.io/v1/repositories/codacy/codacy-pylint/tags