Skip to content

Add awaitSuccess with timeout while pulling image#939

Closed
hazim1093 wants to merge 1 commit intodocker-java:3.0.xfrom
hazim1093:patch-1
Closed

Add awaitSuccess with timeout while pulling image#939
hazim1093 wants to merge 1 commit intodocker-java:3.0.xfrom
hazim1093:patch-1

Conversation

@hazim1093
Copy link
Copy Markdown

@hazim1093 hazim1093 commented Oct 25, 2017

I'm facing a scenario where Image pulling is taking a lot of time and I need it to timeout after a specific time. The pull request includes an overloaded awaitSuccess method which calls the overloaded awaitCompletion(timeout, timeoutUnit) method (already provided), instead of the awaitCompletion() method.


This change is Reviewable

throw new DockerClientException("", e);
}

if (latestItem == null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hazim1093 why do you duplicate this code? Extract it to separate method, see BuildImageResultCallback for reference

fbuecklers added a commit to Baqend/java-docker-driver that referenced this pull request Oct 25, 2017
fbuecklers added a commit to Baqend/java-docker-driver that referenced this pull request Oct 25, 2017
@KostyaSha KostyaSha closed this in 8902e32 Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants