How to search images from private 1.0 registry in docker? -
i made private registry,curl xx.xx.xx.xx:5000 ok. push image docker private registry doing: docker push xx.xx.xx.xx:5000/centos
return:
http://xx.xx.xx.xx:5000/v1/repositories/centos/tags/latest
the question how images registry web or command whatever. cant find information docker registry api. 1 helps ? :)
as of v 0.7.0 of private registry can do:
$ curl -x http://localhost:5000/v1/search?q=postgresql
and json payload:
{"num_results": 1, "query": "postgresql", "results": [{"description": "", "name": "library/postgresql"}]}
to give more background here how started registry:
docker run \ -e settings_flavor=local \ -e storage_path=/registry \ -e search_backend=sqlalchemy \ -e loglevel=debug \ -p 5000:5000 \ registry
Comments
Post a Comment