Skip to content

Instantly share code, notes, and snippets.

@DrSnowbird
Created February 5, 2018 02:01
Show Gist options
  • Save DrSnowbird/114bd1129ca7bc30d7ac25cceea4cefd to your computer and use it in GitHub Desktop.
Save DrSnowbird/114bd1129ca7bc30d7ac25cceea4cefd to your computer and use it in GitHub Desktop.
Start docker with Juypter, Tensorboard (with Tensoflow lib)
#!/bin/bash -x
## Launch Jupyter and Tensorboard
sudo nvidia-docker run --rm --name tf1 -p 8888:8888 -p 6006:6006 gcr.io/tensorflow/tensorflow:latest-gpu jupyter notebook --allow-root
## If the above command shows a line like:
# http://localhost:8888/?token=c8caba947dfd4c97414447c074325faf399cf8a157d0ce2f
# …you’re in business. Find the external IP address of your GCE instance and connect to it on port 8888,
# e.g. http://EXTERNAL_IP:8888/, type in the (similar) token from your console, and
# you have a GPU enabled Jupyter notebook running Tensorflow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment