فهرست منبع

Reduce stop() timeout when recreating containers

Aanand Prasad 11 سال پیش
والد
کامیت
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))