fix(docker): fail an image pull that times out instead of using what the tag names (#5786)

This commit is contained in:
Niels Kootstra authored and GitHub committed 2026-10-16 07:29:59 -04:00
1 parent e3442de5bd
commit 7ecd225dd1
2 files changed
+37 -12

No files matched your search

@@ -186,8 +186,9 @@ public class ImageCacheService {
}
ManifestDigestCallback callback = new ManifestDigestCallback();
lastAttempt.set(callback);
pullImage.<PullImageResultCallback>exec(callback)
.awaitCompletion(5, TimeUnit.MINUTES);
if (!pullImage.<PullImageResultCallback>exec(callback).awaitCompletion(5, TimeUnit.MINUTES)) {
throw new DockerClientException("Timed out pulling image " + imageUri + " after 5 minutes");
}
});
} catch (InterruptedException e) {
Thread.currentThread().interrupt();