Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search for an docker image in multiple private registries

When we are searching for an image in our private registry we need to specify the host "docker search 10.10.10.10:5000/apache" If we execute "docker search apache" docker is looking for an image only in the official docher hub registry. Our use case:

FROM organization/apache
# .....
# custom instructions

We want to search this image in our registry(without providing registry host), and if it is not found use public docker hub registry. Is it possible to configure docker client to do this?

like image 644
Trukhanov Nikolay Avatar asked Oct 31 '22 06:10

Trukhanov Nikolay


1 Answers

I think what you actually want to do is set up a Docker mirror: https://docs.docker.com/registry/recipes/mirror/

So the first time you pull an image, it will come from the Hub, but subsequent requests will be handled locally.

like image 111
Adrian Mouat Avatar answered Nov 15 '22 07:11

Adrian Mouat