Эх сурвалжийг харах

Attempt to fix container not stopped errors (#3702)

* Attempt to fix container not stopped errors

* dont like arbitrary sleep but nothing else is working so far
Nate 7 жил өмнө
parent
commit
f691404801

+ 1 - 4
toolset/utils/docker_helper.py

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