-
Notifications
You must be signed in to change notification settings - Fork 8
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
Question: How to make consecutive Docker calls? #258
Comments
Hi @rwmajor2 Sorry for not following this up earlier. Making consecutive Docker calls with the same client is well supported and unit-tested. I believe this is either a bug with these specific calls or you 're doing something weird in your example that I cannot spot at the moment. I 'll try to reproduce it in the next couple of days. |
Hi @rwmajor2 I couldn't manage to reproduce your issue with the 4.0.2 version:
|
Is this a BUG REPORT or FEATURE REQUEST?:
Description
I am trying to use the DockerClient and I keep seeming to have an issue making consecutive calls with the same client object, throwing an error and closing the connection. Below is an example:
The first works. The second throws an error ('javax.ws.rs.ProcessingException: java.lang.IllegalStateException: Connection is still allocated'). I keep running into this and not sure how to overcome it. I am missing something fundamentally of how to use a single instantiated DockerClient object and make numerous calls.
How to reproduce
[Add steps on how to reproduce this issue]
What do you expect
[Describe what do you expect to happen]
What happened instead
[Describe the actual results]
Software:
docker version
: [Add the output ofdocker version
here, both client and server]Full backtrace
The text was updated successfully, but these errors were encountered: