Last active
April 26, 2019 12:57
-
-
Save damienpontifex/c91feda1153100b9815c9398f1060b0f 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
# Run interactive python tensorflow container | |
docker run --rm -it --name py-tf --entrypoint python tensorflow/tensorflow:1.3.0-py3 | |
# Run jupyter notebook container | |
docker run --rm -dit -p 8888:8888 -p 6006:6006 -v "${PWD}":/notebooks --name notebook tensorflow/tensorflow:1.3.0-py3 | |
# Run on ubuntu server with GPU and have it run on startup | |
nvidia-docker run -dit \ | |
-p 8888:8888 -p 6006:6006 \ | |
-v /home/nbs:/notebooks \ | |
--name notebook \ | |
--restart unless-stopped \ | |
tensorflow/tensorflow:1.3.0-gpu-py3 | |
# Run on ubuntu server with GPU for specific script and also map volume for log & checkpoint output to host machine | |
nvidia-docker run --rm -dit \ | |
-p 8888:8888 -p 6006:6006 \ | |
-v /home/nbs:/notebooks \ | |
-v /home/tf-logs:/tmp/tf-logs \ | |
--name tf-script \ | |
--entrypoint train-script.sh \ | |
tensorflow/tensorflow:1.3.0-gpu-py3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment