Browse Source

Reduce stop() timeout when recreating containers

Aanand Prasad 11 năm trước cách đây
mục cha
commit
8a0071d9c1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      fig/service.py

+ 1 - 1
fig/service.py

@@ -85,7 +85,7 @@ class Service(object):
             new_containers = []
             for old_container in old_containers:
                 if old_container.is_running:
-                    old_container.stop()
+                    old_container.stop(timeout=1)
                 options = dict(override_options)
                 options['volumes_from'] = old_container.id
                 new_containers.append(self.create_container(**options))