Search results always empty when searching Nexus 3 Docker repository

1,814 views
Skip to first unread message

Dalton West

unread,
Jun 6, 2016, 1:19:21 AM6/6/16
to Nexus Users
After building a new Docker repository in Nexus 3.0.0.-03 and checking the V1 API check box, I am able to push and pull successfully :)

I am unable to search the new registry from either Docker or the Nexus GUI for the images I have pushed.

To push an image into the new repository, I simply re-tagged an existing image and pushed to the new repository. 
I can see the images in the search Docker front page, but I cannot find a specific image with any of the search criteria. Searching from the docker CLI returns empty results with the logs from requests.log in Nexus showing similar to below.

#> docker search dockerrepo:4438/bob
INDEX     NAME      DESCRIPTION   STARS     OFFICIAL   AUTOMATED


"GET /repository/docker-internal/v2/ HTTP/1.1" 401 113 6
"GET /repository/docker-internal/v2/ HTTP/1.1" 401 113 4
"GET /repository/docker-internal/v1/search?q=bob HTTP/1.1" 200 80 52

Any help with getting docker search to work would be great.

Rich Seddon

unread,
Jun 6, 2016, 8:56:32 AM6/6/16
to Dalton West, Nexus Users
Do you have v1 support enabled on the repository that is using port 4438 (e.g., your docker group repository)?  This is needed, the v2 Docker API doesn't have support search yet.   This isn't a Nexus limitation, it is true of the official registry also: https://github.com/docker/distribution/issues/206

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/eb1b09c6-4320-4cd1-81f0-6fc5b3247e02%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Rich Seddon

unread,
Jun 6, 2016, 5:45:07 PM6/6/16
to Dalton West, Nexus Users
One other thing I should have mentioned... be sure you have the "docker index" in your docker hub proxy set to "use docker hub".

Rich

Dalton West

unread,
Jun 6, 2016, 7:29:15 PM6/6/16
to Nexus Users
Thanks for your reply's Rich.

I do have the v1 API check box checked on both the group and the hosted repository. I did not create a proxy repository as that is not a requirement for my implementation. After I added a proxy repo with the index check box checked, and added to my group, search worked fine :)

Is it a requirement to have a proxy repo to enable search?

After I removed the proxy repo, search still works with existing and new images pushed to hosted repo.

Thanks for your support, I have search working, but am confused with why I would have to create a proxy repo to do it.

Rich Seddon

unread,
Jun 7, 2016, 9:57:22 AM6/7/16
to Dalton West, Nexus Users
For images that you've pushed into local hosted repositories you just need to make sure v1 is checked.  I was referring to getting search working against dockerhub.  

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.

Dalton West

unread,
Jun 7, 2016, 11:26:52 PM6/7/16
to Nexus Users
Rich,

Search is always returned as empty if I do not have a proxy repository added to the group for Docker.

If I remove the proxy group, I am no longer able to search my hosted repository

Rich Seddon

unread,
Jun 8, 2016, 3:43:13 PM6/8/16
to Dalton West, Nexus Users
I haven't been able to reproduce this, I have tried using a docker group repository which has just one hosted docker repository as a member, and search is working for my hosted images.

If you want us to investigate please generate a support zip in Nexus under "support tools/support zip" in the UI and attach it to a Nexus issue at https://issues.sonatype.org

--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.

Dalton West

unread,
Jun 8, 2016, 11:05:23 PM6/8/16
to Nexus Users
Thanks Rich,

I must be doing something strange with the docker push command.

As this works for me now with a dummy proxy repo setup, I am happy to live with it.

Thanks for your help.
Reply all
Reply to author
Forward
0 new messages