diff --git a/app/src/Commands/Instances/DeleteCommand.php b/app/src/Commands/Instances/DeleteCommand.php index 35ef8247..d943f864 100644 --- a/app/src/Commands/Instances/DeleteCommand.php +++ b/app/src/Commands/Instances/DeleteCommand.php @@ -147,7 +147,7 @@ protected function deleteInstance( ); } - if ($this->filesystem->exists(self::KEYCLOAK_PATH)) { + if ($this->filesystem->exists(self::KEYCLOAK_PATH) && $this->docker->isInstanceUp(self::KEYCLOAK_PATH)) { $this->docker->executeDockerCommand( "doil_keycloak", "/root/delete_keycloak_client.sh $instance"