Closed tdoan1971 closed 9 years ago
Can you copy:
Hi dmp42,
Thanks,
Can you curl -iv https://mylocalregistry:5000/v1/search?q=base
?
Hi Olivier, I am not near the system now to try the curl command. However I have the flag "--insecure-registry mylocalregistry:5000" on the remote Docker daemon so that it pulls/pushes successfully without user authentication.
My point is: I don't think the search is enabled on your registry - that curl command would make sure about that.
Hi Olivier,
So, how to enable the search for the registry if the curl command is false?
Thanks,
DISA-EE322 - Perf Analysis & M&S Room: A5D58G 301-225-7335
-----Original Message----- From: Olivier Gambier [mailto:notifications@github.com] Sent: Monday, March 02, 2015 2:05 PM To: docker/docker-registry Cc: Doan, Truong V CIV DISA EE (US) Subject: Re: [docker-registry] docker search return unexpected 404 error (#951)
My point is: I don't think the search is enabled on your registry - that curl command would make sure about that.
— Reply to this email directly or view it on GitHub https://github.com/docker/docker-registry/issues/951#issuecomment-76783328 . https://github.com/notifications/beacon/AHL-oExsbJDA-XuQp5B9GRijzdBsSAurks5nxKvggaJpZM4DoHYT.gif
If the search endpoint is not enabled, make sure what configuration you are actually using and/or that the search backend settings is actually set.
The problem solved. It turns out that the docker-registry conf file at /etc/sysconfig point to the local flavor which does not have the endpoint flag set. Chage it to the dev flavor to solve the problem.
I run the docker private registry on local mode with endpoint set sqlalchemy. The pull/push works well: ex: docker pull mylocalregistry:5000/base/rhel6.5:v1
However when I run "docker search mylocalregistry:5000/base". It returns "... unexpected 404" What is the issue?