-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.bat
More file actions
36 lines (31 loc) · 776 Bytes
/
start.bat
File metadata and controls
36 lines (31 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
chcp 949 >nul
echo Deep Learning Course Docker Environment Starting...
REM Check if Docker Desktop is running
docker info >nul 2>&1
if errorlevel 1 (
echo Docker Desktop is not running.
echo Please start Docker Desktop and try again.
pause
exit /b 1
)
REM Check GPU availability
nvidia-smi >nul 2>&1
if errorlevel 1 (
echo NVIDIA GPU not detected. Running without GPU support...
) else (
echo NVIDIA GPU detected. Running with GPU support...
)
REM Start Docker container
echo Starting Docker container...
cd examples
docker-compose up --build
echo.
echo Jupyter Notebook has started.
echo Please access http://localhost:8888 in your browser.
echo.
echo Press any key to exit...
pause >nul
REM Stop container
docker-compose down
cd ..