Explorar o código

Change docker containers to shut down gracefully (#4740)

amichair %!s(int64=6) %!d(string=hai) anos
pai
achega
b875bd2712
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      toolset/utils/docker_helper.py

+ 1 - 1
toolset/utils/docker_helper.py

@@ -250,7 +250,7 @@ class DockerHelper:
     @staticmethod
     def __stop_container(container):
         try:
-            container.kill()
+            container.stop(timeout=2)
             time.sleep(2)
         except:
             # container has already been killed