Update app/Actions/Application/CleanupPreviewDeployment.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
945cce9587
commit
86a02a12e6
1 changed files with 2 additions and 1 deletions
|
|
@ -157,8 +157,9 @@ private function stopRunningContainers(
|
||||||
foreach ($containers as $container) {
|
foreach ($containers as $container) {
|
||||||
$containerName = data_get($container, 'Names');
|
$containerName = data_get($container, 'Names');
|
||||||
if ($containerName) {
|
if ($containerName) {
|
||||||
|
$escapedContainerName = escapeshellarg($containerName);
|
||||||
instant_remote_process(
|
instant_remote_process(
|
||||||
["docker rm -f $containerName"],
|
["docker rm -f {$escapedContainerName}"],
|
||||||
$server
|
$server
|
||||||
);
|
);
|
||||||
$killed++;
|
$killed++;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue