docker-py icon indicating copy to clipboard operation
docker-py copied to clipboard

How to close the socket used by Dockerclient(base_url)

Open ywang412 opened this issue 8 years ago • 2 comments

I cannot find a Dockerclient.close() API. My code gave me warning about unclosed socket. Although this is not error, is it possible to close the socket elegantly?

ywang412 avatar Feb 26 '18 17:02 ywang412

DockerClient.api.close() should work!

shin- avatar Feb 26 '18 18:02 shin-

Thanks!

ywang412 avatar Feb 26 '18 19:02 ywang412