2024-03-30 15:48:10 +01:00
|
|
|
@echo off
|
|
|
|
|
2024-03-31 07:08:52 +02:00
|
|
|
echo Creating and running the Jupyter container...
|
2024-03-30 15:48:10 +01:00
|
|
|
|
2024-03-31 07:08:52 +02:00
|
|
|
docker run -it -d ^
|
|
|
|
--gpus all ^
|
|
|
|
-p 8888:8888 ^
|
|
|
|
--name jupyter ^
|
|
|
|
--user root ^
|
|
|
|
-e NB_USER="%username%" ^
|
|
|
|
-e CHOWN_HOME=yes ^
|
|
|
|
-e GRANT_SUDO=yes ^
|
|
|
|
-e JUPYTER_TOKEN=mytoken ^
|
|
|
|
-w "/home/%username%" ^
|
|
|
|
-v "%cd%":"/home/%username%/work" ^
|
2024-04-03 14:23:28 +02:00
|
|
|
voicecraft
|
2024-03-31 07:08:52 +02:00
|
|
|
|
|
|
|
if %errorlevel% == 0 (
|
|
|
|
echo Jupyter container created and running.
|
2024-04-03 14:23:28 +02:00
|
|
|
|
2024-03-31 07:08:52 +02:00
|
|
|
echo Jupyter container is running.
|
|
|
|
echo To access the Jupyter web UI, please follow these steps:
|
|
|
|
echo 1. Open your web browser
|
|
|
|
echo 2. Navigate to http://localhost:8888/?token=mytoken
|
|
|
|
echo 3. !! The default token is "mytoken" and should be changed. !!
|
|
|
|
pause
|
|
|
|
) else (
|
|
|
|
echo Failed to create and run the Jupyter container.
|
|
|
|
)
|