Update app/Actions/Application/CleanupPreviewDeployment.php

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Andras Bacsai 2025-12-08 17:35:13 +01:00 committed by GitHub
parent 945cce9587
commit 86a02a12e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -157,8 +157,9 @@ private function stopRunningContainers(
foreach ($containers as $container) {
$containerName = data_get($container, 'Names');
if ($containerName) {
$escapedContainerName = escapeshellarg($containerName);
instant_remote_process(
["docker rm -f $containerName"],
["docker rm -f {$escapedContainerName}"],
$server
);
$killed++;