Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
f691404801
1 mainītis faili ar 1 papildinājumiem un 4 dzēšanām
  1. 1 4
      toolset/utils/docker_helper.py

+ 1 - 4
toolset/utils/docker_helper.py

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