<p>I am using Containerd as a container runtime. When I create a pod, contained pull two images.
(the result from <code>ctr -n k8s.io i ls -q</code>)</p>
<pre><code>myprivateregistery/gcr.io/google_containers/kubernetes-dashboard-amd64:v1.7.1                                                                  application/vnd.docker.distribution.manifest.v2+json sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 39.8 MiB  linux/amd64 io.cri-containerd.image=managed
myprivateregistery/gcr.io/google_containers/kubernetes-dashboard-amd64@sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 application/vnd.docker.distribution.manifest.v2+json sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 39.8 MiB  linux/amd64 io.cri-containerd.image=managed
</code></pre>
<p>A bit later another image has created, the result from <code>ctr -n k8s.io i ls -q</code> becomes.</p>
<pre><code>myprivateregistery/gcr.io/google_containers/kubernetes-dashboard-amd64:v1.7.1                                                                  application/vnd.docker.distribution.manifest.v2+json sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 39.8 MiB  linux/amd64 io.cri-containerd.image=managed
myprivateregistery/gcr.io/google_containers/kubernetes-dashboard-amd64@sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 application/vnd.docker.distribution.manifest.v2+json sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 39.8 MiB  linux/amd64 io.cri-containerd.image=managed
sha256:294879c6444ed35b8cb94c613e61c47b9938305a1d1eaf452c0d17db471d99e5                                                                              application/vnd.docker.distribution.manifest.v2+json sha256:2cc826b775aacfb15a89a1f2d6685799f360ddb65f101b656097784cef2bb9d7 39.8 MiB  linux/amd64 io.cri-containerd.image=managed
</code></pre>
<p>The events received by Containerd:</p>
<pre><code>2021-06-03 10:41:41.942185302 +0000 UTC k8s.io /images/create {&quot;name&quot;:&quot;myprivateregistry/gcr.io/google_containers/kubernetes-dashboard-amd64:v1.7.1&quot;}
2021-06-03 10:41:41.944191919 +0000 UTC k8s.io /images/create {&quot;name&quot;:&quot;sha256:294879c6444ed35b8cb94c613e61c47b9938305a1d1eaf452c0d17db471d99e5&quot;,&quot;labels&quot;:{&quot;io.cri-containerd.image&quot;:&quot;managed&quot;}}
</code></pre>
<p>The question is why Containerd pull mutilple images that are the same. I exepect to see one image, the output of image listing command shows 3 images pulled. Also if I created lot of pod it result a Disk pressure beacause of this.</p>

mohamed.Yassine.SOUBKI
<p>It doesn't pull two images, it only pulls one images. The tag is actually a reference to a specific hash that it needs to resolve first. So the first requests is just to resolve the tag to the hash and the second is the actual download.</p>
<p>Indirect evidence for that is the small amount of time between the two, you can see that it only took 0.002 seconds to get the reply to the first request and only after that it began downloading.</p>
