1
0
Эх сурвалжийг харах

Reduce stop() timeout when recreating containers

Aanand Prasad 11 жил өмнө
parent
commit
8a0071d9c1
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  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))