|
@@ -214,11 +214,8 @@ class DockerHelper:
|
|
@staticmethod
|
|
@staticmethod
|
|
def __stop_container(container):
|
|
def __stop_container(container):
|
|
try:
|
|
try:
|
|
- client = container.client
|
|
|
|
container.kill()
|
|
container.kill()
|
|
- while container.id in map(lambda x: x.id,
|
|
|
|
- client.containers.list()):
|
|
|
|
- pass
|
|
|
|
|
|
+ time.sleep(2)
|
|
except:
|
|
except:
|
|
# container has already been killed
|
|
# container has already been killed
|
|
pass
|
|
pass
|