mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Reduce stop() timeout when recreating containers
This commit is contained in:
parent
5db6c9f51b
commit
8a0071d9c1
@ -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…
x
Reference in New Issue
Block a user