ErrorCode for Docker version

This commit is contained in:
lunardunno 2024-03-21 12:41:26 +04:00 committed by GitHub
parent 516e3da7e2
commit 7a3834ef57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -417,6 +417,8 @@ ErrorCode ServerController::installDockerWorker(const ServerCredentials &credent
return ErrorCode::ServerPacketManagerError;
if (stdOut.contains("command not found"))
return ErrorCode::ServerDockerFailedError;
if (stdOut.contains("Docker is not supported"))
return ErrorCode::ServerDockerVersionError;
return error;
}