Revert "fix(deployment): Remove redundant docker rm when using --rm flag"

This commit is contained in:
Andras Bacsai
2025-12-18 13:20:59 +01:00
committed by GitHub
parent 922c0a9e7c
commit 21ce75e4d4
2 changed files with 3 additions and 2 deletions

View File

@@ -3176,7 +3176,8 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
try {
$timeout = isDev() ? 1 : 30;
$this->execute_remote_command(
["docker stop -t $timeout $containerName", 'hidden' => true, 'ignore_errors' => true]
["docker stop -t $timeout $containerName", 'hidden' => true, 'ignore_errors' => true],
["docker rm -f $containerName", 'hidden' => true, 'ignore_errors' => true]
);
} catch (Exception $error) {
$this->application_deployment_queue->addLogEntry("Error stopping container $containerName: ".$error->getMessage(), 'stderr');