Skip to content

Commit 35520ab

Browse files
Matthieu Nottaleshin-
authored andcommitted
Add close() method to DockerClient.
Signed-off-by: Matthieu Nottale <[email protected]>
1 parent ea682a6 commit 35520ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ def version(self, *args, **kwargs):
186186
return self.api.version(*args, **kwargs)
187187
version.__doc__ = APIClient.version.__doc__
188188

189+
def close(self):
190+
return self.api.close()
191+
close.__doc__ = APIClient.close.__doc__
192+
189193
def __getattr__(self, name):
190194
s = ["'DockerClient' object has no attribute '{}'".format(name)]
191195
# If a user calls a method on APIClient, they

0 commit comments

Comments
 (0)