Merge pull request #5366 from djsisson/fix_delete_logic

change cleanup logic when restarting containers
This commit is contained in:
Andras Bacsai 2025-03-18 10:04:12 +01:00 committed by GitHub
commit edabd29093
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ public function handle(StandaloneRedis|StandalonePostgresql|StandaloneMongodb|St
}
$this->stopContainer($database, $database->uuid, 300);
if (! $isDeleteOperation) {
if ($isDeleteOperation) {
if ($dockerCleanup) {
CleanupDocker::dispatch($server, true);
}

View file

@ -23,7 +23,7 @@ public function handle(Service $service, bool $isDeleteOperation = false, bool $
$containersToStop = $service->getContainersToStop();
$service->stopContainers($containersToStop, $server);
if (! $isDeleteOperation) {
if ($isDeleteOperation) {
$service->delete_connected_networks($service->uuid);
if ($dockerCleanup) {
CleanupDocker::dispatch($server, true);