I'm working with docker HUB as well as a couple private docker repos. I'm trying to find the syntax to use for running docker search
for the alternate docker repositories.
For example, to search for ubuntu
images in my private repo I tried:
docker search https://my.docker.repo ubuntu
But I get an error saying "docker search" requires exactly 1 argument.
I've looked at the docker search documentation: https://docs.docker.com/engine/reference/commandline/search/ and it doesn't show any way to specify an alternate docker repository.
I did a search on StackOverflow and found:
- Docker search cannot find image but docker pull can - But this didn't answer my question.
A google search gave this answer:
which says you can use a curl command like this:
curl -X GET https://my.docker.repo/v1/search?q=postgresql
But this just returned an HTML page. If I went to that same URL in my browser, I got a page that redirected me to the docker UI for that repo.
I'm guessing based on what I've found that this isn't possible. If it is please let me know. Thanks.