Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how list all images or search api? #441

Closed
blackfader opened this issue Apr 27, 2015 · 4 comments
Closed

how list all images or search api? #441

blackfader opened this issue Apr 27, 2015 · 4 comments
Assignees
Labels

Comments

@blackfader
Copy link

docker resgistry v1 have search api,I can find what imags in registry.

https://docker.registry.cn/v1/search?q="+query

registry v2 has this api? I can not find.

@stevvooe
Copy link
Collaborator

The V2 registry API does not support listing images. This is not present in the V2 API because not all implementations will have full knowledge of their contents. There is some discussion in #206 regarding what is actually required. We may add a catalog to the Registry 2.0 implementation, depending on what the actual requirement is.

If you need to manage images now, using storage.Walk should provide access to the backend data.

This is a duplicate of #382.

@marians
Copy link

marians commented Jun 24, 2015

Seems like this question is answered and the issue could be closed.

@dmp42 dmp42 closed this as completed Jun 24, 2015
@rferris
Copy link

rferris commented Jul 23, 2015

How can this issue possibly be closed? What sense does it make to have docker cli include a search command that only works with the official docker registry.

What is the point of running a private registry if you can never look at what images you have in it?

@stevvooe
Copy link
Collaborator

@rferris Inspecting the contents of a registry is not the point of the docker search command. For this use case, we have already gone through the process of adding the catalog API.

If you are curious about the state of search in relation to v2, please see the road map.

In the future, if you have questions about the state of the project, please use IRC or the mailing list rather than commenting on closed issues. Often times, there is context to the closure that you may not have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants