Last active
May 22, 2018 18:10
-
-
Save thejevans/4718e86b868620bc078d2845a3903714 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if nvidia-docker run -d -it -p $JUPYTERPORT:8888 --name $USER-jupyter_gpu -v /data/users/$USER/notebooks:/notebooks \ | |
thejevans/jupyter-tensorflow-keras-opencv-gpu /bin/bash -c "useradd -u $UID $USER; jupyter notebook --allow-root" 2> /dev/null | |
then | |
echo "booting into container..." | |
else | |
docker start $USER-jupyter_gpu > /dev/null | |
echo "starting container..." | |
fi | |
echo "your port is $JUPYTERPORT" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment