1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Merge pull request #1374 from aanand/close-before-attaching

Close connection after building or pulling
This commit is contained in:
Daniel Nephin
2015-04-29 18:56:03 -04:00

View File

@@ -476,6 +476,11 @@ class Service(object):
except StreamOutputError as 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
for event in all_events: