Docker: Automatically remove the container when it exits

Change-Id: I167dfadc79e892807f47332f79f2a5226ffdbe1a
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
hjk
2021-06-21 16:50:20 +02:00
parent 98b9c36270
commit c721242be8

View File

@@ -573,6 +573,7 @@ void DockerDevicePrivate::tryCreateLocalFileAccess()
}
CommandLine dockerRun{"docker", {"run", "-i", "--cidfile=" + tempFileName,
"--rm",
"-e", "DISPLAY=:0",
"-e", "XAUTHORITY=/.Xauthority",
"--net", "host"}};