dc up -d
dc logs
Look for URL and open in browser
Install docker for your environment: https://www.docker.com/community-edition#/download
Install AWS CLI and configure credentials: Install Link Configure Link
alias dm="docker-machine"
alias dc="docker-compose"
dm create --driver=amazonec2 --amazonec2-region us-west-2 --amazonec2-instance-type p2.xlarge jupyter
Or follow these instructions to install docker on your own instance:
https://docs.docker.com/engine/install/ubuntu/
dm ls
dm start jupyter
dm stop jupyter
dm rm jupyter
dm ssh jupyter
dm scp [machine:][path] machine:][path]
SSH into the host
dm ssh jupyter
On the host server:
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker
Verify Cuda is properly setup and GPU is working
sudo docker run --gpus all nvidia/cuda:10.0-base nvidia-smi
Run Jupyter using docker:
sudo docker run --rm -d --gpus all --name jupyter -p 8888:8888 -v /home/ubuntu/notebooks:/home/jovyan/work drujensen/jupyter:latest
Watch logs and grab URL to open
sudo docker logs jupyter