v11
v11

Reputation: 2244

How to configure docker registry to make a priority to local registry when PULL?

I'm new to docker, then the problem may describe not clearly in title. I want to do it that when I use pull image, it will check local registry at first. Then, if there is no this image in local registry, it will download from docker hub and auto push it to local registry. How to do it?
docker hub <-> registry <-> client pull image

Upvotes: 1

Views: 1156

Answers (1)

v11
v11

Reputation: 2244

It can use Mirror to do this work:

it pulls the image from the public Docker registry and stores it locally before handing it back to you. On subsequent requests, the local registry mirror is able to serve the image from its own storage.

Upvotes: 1

Related Questions