Docker Community Forums

Share and learn in the Docker community.

Pull same image two times

sudo docker pull tensorflow/tensorflow:latest-gpu
latest-gpu: Pulling from tensorflow/tensorflow
7ddbc47eeb70: Pull complete
c1bbdc448b72: Pull complete
8c3b70e39044: Downloading
45d437916d57: Download complete
d8f1569ddae6: Download complete
85386706b020: Download complete
ee9b457b77d0: Downloading
ba76dd394d58: Download complete
257975142b4d: Download complete
f41a1fbb4940: Download complete
fdb48ae01855: Download complete
7be34d8326b1: Download complete
07e47fcee106: Download complete
d1aa47ec9c67: Download complete
9bfed42b7d3e: Download complete
52a5fe293ce3: Download complete
latest-gpu: Pulling from tensorflow/tensorflow
7ddbc47eeb70: Pulling fs layer
c1bbdc448b72: Pulling fs layer
8c3b70e39044: Pulling fs layer
45d437916d57: Waiting
d8f1569ddae6: Waiting
85386706b020: Waiting
ee9b457b77d0: Waiting
ba76dd394d58: Waiting
257975142b4d: Waiting
f41a1fbb4940: Waiting
fdb48ae01855: Waiting
7be34d8326b1: Waiting
07e47fcee106: Waiting
d1aa47ec9c67: Waiting
9bfed42b7d3e: Waiting
52a5fe293ce3: Waiting
error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/f5/f5ba7a196d564d9078574b7ac3e70723f500e04ad63fab9e4087133e4b90d0c0/data?verify=1593080129-o0j9WvUEwFBSXpqwIvFt2HJlkrM%3D: dial tcp 104.18.121.25:443: i/o timeout

/etc/docker/daemon.json
{
“data-root”:"/home/ighack/Documents/docker/data",
“registry-mirrors”:[“https://docker.mirrors.ustc.edu.cn”]
}

first time is route my daemon.json,but second is not

why

Server Version: 19.03.11

I have a docker-compose.yml file where multiple containers use the same image. When I call docker-compose pull the same image will be pulled multiple times. Is this really needed? The chances of a new version of that image being uploaded within the same pull process seems highly unlikely.

Example YML:

fpm:
image: company/fpm
container_name: fpm
volumes:
- /public:/var/www

ownersfpm:
image: company/fpm
container_name: ownersfpm
volumes:
- /owners:/var/www

partnersfpm:
image: company/fpm
container_name: partnersfpm
volumes:
- /partners:/var/www
And the pull string:

Pulling fpm (company/fpm)…
vagrant: Pulling from company/fpm
Digest: sha256:f190cbcd1a51b9fc03177bcda596dd2ae114825140284935f5a2b658754592a9
Status: Image is up to date for company/fpm
Pulling ownersfpm (company/fpm)…
vagrant: Pulling from company/fpm
Digest: sha256:f190cbcd1a51b9fc03177bcda596dd2ae114825140284935f5a2b658754592a9
Status: Image is up to date for company/fpm
Pulling partnersfpm (company/fpm)…
vagrant: Pulling from company/fpm
Digest: sha256:f190cbcd1a51b9fc03177bcda596dd2ae114825140284935f5a2b658754592a9
Status: Image is up to date for company/fpm