WHat should be fixed here?
Ubuntu is a Debian-based Linux distribution and Docker Hub searches in the description too.
I think thatâs a good thing. If you mean you would like to have a way to whether you want to search in the description or not, I would like that idea. You could recommend it on GitHub as well
Iâm sorry but Iâll give you the benefit of the doubt and assume youâre joking. The search term is âdebianâ. It makes no sense to display anything else than Debian on the first search result.
I could search for encryption and I wouldnât want to see only the images that contain the word in their name, but images that are related to encryption somehow. The search engine will not know when you want to search for exact image names or related words.
It is not just about Docker Hub. The following command would give you the same result:
docker search debian
You could also search for âdebianâ on GitHub. The second result for me was teddysun/shadowsocks_install
. âdebianâ is only in the description of the repository, so this is not a âbugâ in Docker Hub. GitHub supports an advanced search with special syntax, but as far as I know, even GitHub doesnât support searching for a part of a repository name only.
https://docs.github.com/en/search-github/github-code-search/understanding-github-code-search-syntax#repository-qualifier
Note: Code search does not currently support regular expressions or partial matching for repository names, so you will have to type the entire repository name (including the user prefix) for the
repo:
qualifier to work.
Searching only for names would be a bad idea in my opinion, but optionally allowing users to search only in the repository names would be a good one, and one that even GitHub doesnât support. quay.io is another image registry and it looks like they donât support it either.
Search for debian and you will get Prometheus because Debian is mentioned in the description.
Youâre right that searching for names only is bad.
Iâm just saying - because we searched for Debian, we should expect an image with a name that has an exact match with the search term, to be the most relevant search result.
I donât know how to make this point come across, but Iâll try⊠I have a wife and she sends me to buy 2kg of chicken breast. If I return with a bucket of KFC and say âitâs better than what you asked for because a) more people buy this than what you asked for, and b) itâs based on 2kg of chicken breast and c) the description said it even contains 2kg of chicken breastâ, the bedroom is going to be understandably unlively.
Haha! I was literally complaining to my girlfriend a few hours ago how much I disliked the Docker Hub search. I donât disagree with the OP, but my biggest complaint is actually the lack of filtering and sorting options.
Sorting options include âSuggestedâ and âRecently Updatedâ At a minimum I would want to sort by âMost Downloadedâ and âMost Likedâ (stared). Iâve literally never interacted with a search engine anywhere where âSuggestedâ, âBest Matchâ, or similar have given me acceptable results. Personally I would just ditch âSuggestedâ and make âMost Downloadedâ the default.
Filtering options are in better condition that sorting options, but could still use some improvement. I donât ever want to see a project that hasnât been touched in a year, so having filter category named âUpdated within the lastâ with the options 1 day, 1 weeek, 1 month, 3 months, 6 months, 1 year, 5 years or something similar would be very welcome.