Last active
February 22, 2017 07:18
-
-
Save hurrycane/6ea963013017daf0e0c38b08ffb8a4ae 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
# Prerequisities: | |
# 1. Install docker: https://docs.docker.com/engine/installation/ | |
# 2. Install nvidia-docker: https://github.com/NVIDIA/nvidia-docker | |
# 3. set $NOTEBOOKS to the persistent local path of your notebooks | |
sudo nvidia-docker run -d \ | |
--name "tensorflow-jupyter" \ | |
--restart=unless-stopped \ | |
-v $NOTEBOOKS:/notebooks \ | |
-p 6006:6006 -p 8888:8888 \ | |
tensorflow/tensorflow:1.0.0-gpu-py3 | |
CONTAINER_ID=`sudo docker ps -a | grep tensorflow-jupyter | sed 's/ .*//'` | |
sudo docker logs $CONTAINER_ID | |
# Copy/paste this URL into your browser when you connect for the first time, to login with a token: $LINK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment