3

In the latest Docker, I encountered an issue like this.

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 -v
Docker version 19.03.13-beta2, build ff3fbc9d55

Update: Occurred again today. Not sure somewhat changed its config then affected Docker. I played Minikube and Kind in these days.

Update:, create an issue moby/moby#41547), please vote it if you are encountering the same problem.

Hantsy
  • 8,006
  • 7
  • 64
  • 109
  • You are using a beta version (`19.03.13-beta2`), does this also happen with the latest stable version (`19.03.12`) of docker? – toydarian Aug 28 '20 at 06:22
  • If you are seeing an issue with beta releases, then please open an issue on GitHub. – BMitch Aug 28 '20 at 09:24
  • @BMitch If I empty the registry-mirrors config item,(and use a proxy server) it works as expected. – Hantsy Aug 28 '20 at 13:08
  • @toydarian no luck. Not sure where is wrong and what caused the problem, and when it began(just noticed it today). – Hantsy Aug 28 '20 at 13:11
  • This looks a lot like a bug, probably specific to windows. It might be worth to post it on GitHub. – toydarian Aug 28 '20 at 13:13

1 Answers1

1

I have the same issue with you(from china). After my researching, below is the reason why docker will pull twice.

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.

jnovack
  • 7,629
  • 2
  • 26
  • 40
seekertang
  • 11
  • 1