Merge pull request #1374 from aanand/close-before-attaching
Close connection after building or pulling
This commit is contained in:
commit
878d90febf
1 changed files with 5 additions and 0 deletions
|
|
@ -476,6 +476,11 @@ class Service(object):
|
||||||
except StreamOutputError as e:
|
except StreamOutputError as e:
|
||||||
raise BuildError(self, unicode(e))
|
raise BuildError(self, unicode(e))
|
||||||
|
|
||||||
|
# Ensure the HTTP connection is not reused for another
|
||||||
|
# streaming command, as the Docker daemon can sometimes
|
||||||
|
# complain about it
|
||||||
|
self.client.close()
|
||||||
|
|
||||||
image_id = None
|
image_id = None
|
||||||
|
|
||||||
for event in all_events:
|
for event in all_events:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue