Skip to content

Commit 1af0eae

Browse files
committed
feat: improve Docker status check in run.bat for better user feedback
1 parent bac3d86 commit 1af0eae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

run.bat

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ if "%choice%"=="1" (
2323
echo ===== Building and Running with Docker =====
2424

2525
REM Check if Docker is running
26-
docker info >nul 2>&1
26+
docker ps >nul 2>&1
2727
if %ERRORLEVEL% neq 0 (
2828
echo Docker is not running. Please start Docker Desktop and try again.
29-
exit /b 1
29+
goto :docker_not_running
30+
) else (
31+
echo Docker is running...
3032
)
3133

3234
REM Build Maven project

0 commit comments

Comments
 (0)