如何配置 docker registry 在 PULL 时优先本地 registry?
How to configure docker registry to make a priority to local registry when PULL?
我是docker的新手,那么问题可能在标题中没有描述清楚。我想这样做,当我使用 pull image 时,它会首先检查本地注册表。然后,如果本地注册表中没有此映像,它将从 docker 集线器下载并自动将其推送到本地注册表。怎么做?
docker hub <-> registry <-> client pull image
它可以使用Mirror来完成这项工作:
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.
我是docker的新手,那么问题可能在标题中没有描述清楚。我想这样做,当我使用 pull image 时,它会首先检查本地注册表。然后,如果本地注册表中没有此映像,它将从 docker 集线器下载并自动将其推送到本地注册表。怎么做?
docker hub <-> registry <-> client pull image
它可以使用Mirror来完成这项工作:
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.