简体   繁体   English

docker 从远程注册表中拉取两次

[英]docker pull twice from remote registry

In the latest Docker, I encountered an issue like this.在最新的Docker中,我遇到了这样的问题。

docker pull mongo:4.0.10
4.0.10: Pulling from library/mongo
f7277927d38a: Pull complete
8d3eac894db4: Downloading
edf72af6d627: Download complete
3e4f86211d23: Download complete
5747135f14d2: Download complete
f56f2c3793f6: Download complete
f8b941527f3a: Download complete
4000e5ef59f4: Download complete
ad518e2379cf: Download complete
919225fc3685: Download complete
45ff8d51e53a: Download complete
4d3342ddfd7b: Download complete
26002f176fca: Download complete
4.0.10: Pulling from library/mongo
f7277927d38a: Pulling fs layer
8d3eac894db4: Pulling fs layer
edf72af6d627: Pulling fs layer

When I pull an image, it will pull it from my registry-mirrors firstly(quickly), then the official hub( I guess, very slow).当我拉图像时,它会首先(快速)从我的注册表镜像中拉出它,然后是官方集线器(我猜,很慢)。

but I do not have this problem before.但我以前没有这个问题。

The docker version I used at the moment(Docker for Windows).我目前使用的 docker 版本(Docker for Windows)。

docker -v
Docker version 19.03.13-beta2, build ff3fbc9d55

Update : Occurred again today.更新:今天又发生了。 Not sure somewhat changed its config then affected Docker.不确定稍微改变了它的配置然后影响了 Docker。 I played Minikube and Kind in these days.这些天我玩了 Minikube 和 Kind。

Update: , create an issue moby/moby#41547) , please vote it if you are encountering the same problem.更新: ,创建一个问题moby/moby#41547) ,如果您遇到同样的问题,请投票。

I have the same issue with you(from china).我和你有同样的问题(来自中国)。 After my researching, below is the reason why docker will pull twice.经过我的研究,以下是docker会拉两次的原因。

8d3eac894db4: Downloading

This means this file can not get download from your registry-mirrors.这意味着此文件无法从您的注册表镜像中下载。

So after time out, docker will pull this mongo image from official docker hub.所以超时后,docker 会从官方 docker hub 拉取这个 mongo 镜像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM