Docker: Use kill to stop container

Calling "stop" often times takes a while or outright fails to stop
some containers. "kill" is more reliable.

Change-Id: I46a33c8f4e38aa9a71b1f64d74042433f7a90ccc
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-07-09 06:33:54 +02:00
parent 84171887bb
commit d30ddb101f

View File

@@ -767,7 +767,7 @@ void DockerDevicePrivate::stopCurrentContainer()
fileAccess->reset();
Process proc;
proc.setCommand({settings().dockerBinaryPath(), {"container", "stop", m_container}});
proc.setCommand({settings().dockerBinaryPath(), {"container", "kill", m_container}});
m_container.clear();