如何获取docker注册表v2上的图像列表 [英] How to get a list of images on docker registry v2

查看:148
本文介绍了如何获取docker注册表v2上的图像列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用docker注册表v1,我有兴趣迁移到较新版本v2。但是我需要一些方法来获取注册表中存在的图像列表;例如与注册表v1,我可以执行一个GET请求到 http:// myregistry:5000 / v1 / search?,结果是:

  {
num_results:2,
query:,
results:[
{
description:,
name:deis / router
},
{
description:,
name:deis / database
}
]
}

但是,在官方文档中找不到类似的内容注册表上的图像列表。任何人都知道在新版本v2上执行的方法?

解决方案

没有V2的搜索界面。
请参阅 https://github.com/docker/distribution/issues/206


I'm using docker registry v1 and I'm interested in migrating to the newer version, v2. But I need some way to get a list of images present on registry; for example with registry v1 I can execute a GET request to http://myregistry:5000/v1/search? and the result is:

{
  "num_results": 2,
  "query": "",
  "results": [
    {
      "description": "",
      "name": "deis/router"
    },
    {
      "description": "",
      "name": "deis/database"
    }
  ]
}

But I can't find on official documentation something similar to get a list of image on registry. Anybody knows a way to do it on new version v2?

解决方案

There is no search interface for V2 yet. Please see https://github.com/docker/distribution/issues/206

这篇关于如何获取docker注册表v2上的图像列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆