Pulling by digest should be a NOP if the image is already present #36195
Labels
area/distribution
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
Description
When pulling by digest, it seems like docker doesn't check to see if it already has that image locally before talking to the registry.
Adding a check here could skip downloading the manifest entirely.
Would you be open to a PR to fix this? Or is it intentional?
Steps to reproduce the issue:
Describe the results you received:
Pulling ubuntu by tag and pulling it by digest both talk to the registry.
Describe the results you expected:
The digest pull should be effectively instant since we already have it.
Output of
docker version
:The text was updated successfully, but these errors were encountered: