New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timeout waiting for connection from pool #277
Comments
The |
FYI: The pull image API will be changed with the next release to handle the stream processing more easily. |
How would I know all layers of images has been downloaded successfully? After that I can close InputStream response object and can pull another image. Also I will try with changing pool size |
OK, thats the problem because of I've decided to refactor the API. Currently (with latest 1.4.0 release) it needs some dirty helper code to process the stream. Take a look at As you can see, it needs a function
With the next release the API will be callback-driven to simplify the stream consumption. |
Ok, Thanks a lot for this. I will wait for next release, for now will have some workaround. Is it available in SNAPSHOT? I can try with it. |
Ok. So closing for now. |
I am trying to pull an image whose size is around 700 MB and it takes around 3-4 minutes if I pull it using command. I am pulling same using docker-java library. Getting following error.
DockerClient dockerClient = DockerClientBuilder.getInstance("http://localhost:2375").build();
dockerClient.pullImageCmd("example-image").withTag("latest").exec();
And after exception it downloads the image. I am not able to see any method which will wait till complete image download.
Please help!
The text was updated successfully, but these errors were encountered: