Skip to content

Instantly share code, notes, and snippets.

@thejevans
Last active May 22, 2018 18:10
Show Gist options
  • Save thejevans/4718e86b868620bc078d2845a3903714 to your computer and use it in GitHub Desktop.
Save thejevans/4718e86b868620bc078d2845a3903714 to your computer and use it in GitHub Desktop.
#!/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