mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 12:16:11 +00:00
fix(deployment): Remove redundant docker rm when using --rm flag (#7688)
This commit is contained in:
2 files changed
+2
-3
No files matched your search
@@ -3176,8 +3176,7 @@ COPY ./nginx.conf /etc/nginx/conf.d/default.conf");
|
|||||||
try {
|
try {
|
||||||
$timeout = isDev() ? 1 : 30;
|
$timeout = isDev() ? 1 : 30;
|
||||||
$this->execute_remote_command(
|
$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) {
|
} catch (Exception $error) {
|
||||||
$this->application_deployment_queue->addLogEntry("Error stopping container $containerName: ".$error->getMessage(), 'stderr');
|
$this->application_deployment_queue->addLogEntry("Error stopping container $containerName: ".$error->getMessage(), 'stderr');
|
||||||
|
|||||||
@@ -669,7 +669,7 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
$this->add_to_error_output($e->getMessage());
|
$this->add_to_error_output($e->getMessage());
|
||||||
throw $e;
|
throw $e;
|
||||||
} finally {
|
} finally {
|
||||||
$command = "docker rm -f backup-of-{$this->backup_log_uuid}";
|
$command = "docker stop backup-of-{$this->backup_log_uuid}";
|
||||||
instant_remote_process([$command], $this->server, true, false, null, disableMultiplexing: true);
|
instant_remote_process([$command], $this->server, true, false, null, disableMultiplexing: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user