Checking docker status

Checking Docker activity.
Checking and changing locale.
Changing "command not found" handling for sh compatibility.
This commit is contained in:
lunardunno 2025-04-07 14:16:07 +04:00
parent 8331b9ea52
commit 5c494fa743
4 changed files with 9 additions and 2 deletions

View file

@ -411,7 +411,9 @@ ErrorCode ServerController::installDockerWorker(const ServerCredentials &credent
return ErrorCode::ServerPacketManagerError;
if (stdOut.contains("Podman is not supported"))
return ErrorCode::ServerPodmanIsNotSupported;
if (stdOut.contains("command not found"))
if (stdOut.contains("Status Docker is not active"))
return ErrorCode::ServerDockerStatusIsNotActive;
if (stdOut.contains("sudo:") && stdOut.contains("not found"))
return ErrorCode::ServerDockerFailedError;
return error;