start docker in wsl if not running
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
root
2024-08-08 11:16:08 +02:00
parent ee28d9510d
commit 6ede5795ba

View File

@@ -64,7 +64,19 @@ Sub Window_OnLoad
If dockerIsRunning Then
MsgBox "Docker is running in WSL.", vbInformation, "Docker Status"
Else
MsgBox "Docker is NOT running in WSL.", vbExclamation, "Docker Status"
MsgBox "Docker is NOT running in WSL. Starting docker...", vbExclamation, "Docker Status"
WSL = "wsl.exe --user root --exec /etc/init.d/docker start"
intReturn = objShell.Run(WSL, 0, True)
If Err.Number <> 0 Then
MsgBox (Err.number & "-" & err.Description)
else
dockerIsRunning = CheckDockerStatus()
If dockerIsRunning Then
MsgBox "Docker is running in WSL. ", vbInformation, "Docker Status"
Else
MsgBox "ERROR: Starting Docker failed in WSL. Exiting install...", vbInformation, "Docker Status"
End If
End If
End If
End Sub