如何从docker中的私人1.0注册表搜索图片? [英] How to search images from private 1.0 registry in docker?
本文介绍了如何从docker中的私人1.0注册表搜索图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建了一个私人注册表,卷曲xx.xx.xx.xx:5000可以。
我将图像推送到docker私人注册表中:
docker push xx.xx.xx.xx:5000 / centos
它返回:
http://xx.xx.xx.xx:5000 / v1 / repositories / centos / tags / latest
I made a private registry,curl xx.xx.xx.xx:5000 is ok.
I push an image into docker private registry by doing:
docker push xx.xx.xx.xx:5000/centos
it return:
http://xx.xx.xx.xx:5000/v1/repositories/centos/tags/latest
问题是如何从注册表Web或命令获取所有图像。
我找不到docker注册表api的任何信息。
任何一个有帮助? :)
the question is how to get all images from registry web or command whatever. I cant find any information from docker registry api. any one helps ? :)
推荐答案
从私有的注册表你可以做:
$ curl -X GET http://localhost:5000/v1/search?q=postgresql
你会得到一个json有效载荷:
and you will get a json payload:
{"num_results": 1, "query": "postgresql", "results": [{"description": "", "name": "library/postgresql"}]}
是我如何开始注册表:
docker run \
-e SETTINGS_FLAVOR=local \
-e STORAGE_PATH=/registry \
-e SEARCH_BACKEND=sqlalchemy \
-e LOGLEVEL=DEBUG \
-p 5000:5000 \
registry
这篇关于如何从docker中的私人1.0注册表搜索图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文