소스 검색

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))