-
Notifications
You must be signed in to change notification settings - Fork 22
We should only do "docker pull" when images for that tag are not present #51
Comments
@LalatenduMohanty Long back I had discussion with @navidshaikh about same and what if same |
+1
|
@vbatts: would you like to chime in this topic? Is there any better option to verify the contents of local image with the one present at docker registry ? |
I don't have a ton of context for this discussion, but the mechanics of checking whether a remote image:tag may be updated, sounds like the domain of projectatomic/skopeo /cc @runcom |
afaict even with skopeo the network is the bottleneck there (the 4.-5 seconds) because in order to verify an image (and all its layers) is update we need to make various operation against the registry (retrieving the manifest, parsing it , play with layers checking. ..) |
Thanks @runcom for you feedback. |
Looks like we are done with discussion on this topic and if a image update/or-not docker will always fetch from network to verify the image nothing local available. If we are sure about tag will not change then something we can do locally like |
Refer #45
If docker images are present for a particular tag and user is asking for that tag images we should not do docker pull and wait for the command to say
the image is up to date
.Because
docker pull
for that tag, it takes 4 - 5 seconds to sayimage is up to date
. So for 5 images it can save some time for the user.docker pull
command to tell us whether we have images , but the code should figure out the same by itself locally.The text was updated successfully, but these errors were encountered: