mirror of
https://github.com/floci-io/floci.git
synced 2026-11-27 07:39:24 -05:00
fix(docker): fail an image pull that times out instead of using what the tag names (#5786)
This commit is contained in:
1 parent
e3442de5bd
commit
7ecd225dd1
2 files changed
+37
-12
No files matched your search
+3
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user