Re-enable docker container removal in ApplicationDeploymentJob

This commit is contained in:
Andras Bacsai 2024-02-19 09:51:39 +01:00
parent 651c9c2c9b
commit 88d6320d08

View File

@ -279,13 +279,13 @@ public function handle(): void
} else {
$this->write_deployment_configurations();
}
// $this->execute_remote_command(
// [
// "docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
// "hidden" => true,
// "ignore_errors" => true,
// ]
// );
$this->execute_remote_command(
[
"docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
"hidden" => true,
"ignore_errors" => true,
]
);
$this->execute_remote_command(
[
"docker image prune -f >/dev/null 2>&1",