-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 to search the registry from the command line #3632
Comments
By default search use v1 api, Harbor disable the V1 api by default. |
There's no search API in registry V2. |
I found that I can search the harbor registry from the command line using a tool called "docker-ls" [https://github.com/mayflower/docker-ls ], but found that harbor doesn't allow you to search using docker-ls unless your an admin on Harbor. Is that correct? If a user can log-on to Harbor, why aren't they not allowed to search the registry from the command line if they can search the registry using the harbor GUI? |
As the admin user, tried listing the harbor docker registry using CLI command curl. Get HTTP/1.1 401 Unauthorized Would like to be able to list the repositories from the command line using curl if possible or any other method. Not sure what I'm doing wrong. Note that from the command line I can run "docker login https://docker-reg.company.com" successfully from the command line.Here's the full output of the curl command
< HTTP/1.1 401 Unauthorized
|
Install Swagger and there are many Rest API's you can call including search via curl.
|
OK, thanks for you support |
所以这个问题的解决方案是?harbor有计划支持V1版本的API吗,https://github.com/docker/distribution/issues/206,docker distribution那边貌似还没支持V2版本。针对docker search host:port/image 大家是怎么做的呢? |
Installed harbor version 1.2
How to search docker-registry from the command line. The docker search command returns "Unexpected status code 404"
docker search docker-registy-host.com/project/imageXXX
Error response from daemon: Unexpected status code 404
The text was updated successfully, but these errors were encountered: