Просмотр исходного кода

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

Close connection after building or pulling
Daniel Nephin 10 лет назад
Родитель
Сommit
878d90febf
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      compose/service.py

+ 5 - 0
compose/service.py

@@ -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: