Last active
December 6, 2018 01:36
-
-
Save aic25/a704e4c9f9db5f7de99ec1d88c53982a to your computer and use it in GitHub Desktop.
Docker setup
This file contains 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
nvidia-docker run -it --rm -p 8870:8870 -p 8880:8880 -p 8890:8890 -p 5000:5000 --name me.test -v /home/me/Study/:/notebooks tensorflow/tensorflow:1.8.0-gpu-py3 | |
docker exec -ti me.test /bin/bash | |
apt-get update | |
pip install jupyterlab | |
pip install gputil | |
pip install keras==2.0.8 | |
apt-get install git-core | |
apt-get install wget | |
cdls() { cd "$@" && ls -lrt; } | |
# Monitoring | |
watch -n 2 -d -c "docker stats me.test --no-stream; nvidia-smi" | |
find . -type d -print0 | while read -d '' -r dir; do | |
files=("$dir"/*) | |
printf "%5d files in directory %s\n" "${#files[@]}" "$dir" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment