Reduce stop() timeout when recreating containers
This commit is contained in:
parent
5db6c9f51b
commit
8a0071d9c1
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue