Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


cd; openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem

Install docker:

sudo apt-key adv --keyserver hkp:// --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9; sudo sh -c "echo deb docker main > /etc/apt/sources.list.d/docker.list"; sudo apt-get update; sudo apt-get install lxc-docker

Download cuda samples:


Pull from dockerhub and run docker instance:

sudo docker pull trackdr/caffegpucaffeipythondockeralt; cd /usr/local/cuda-7.0/samples/1_Utilities/deviceQuery; make; /home/ubuntu/NVIDIA_CUDA-7.0_Samples/bin/x86_64/linux/release/deviceQuery; DOCKER_NVIDIA_DEVICES="--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm"; sudo docker run -d $DOCKER_NVIDIA_DEVICES -v /home/ubuntu/mycert.pem:/mycert.pem -p 5910:8888 -e "PASSWORD=replacethispassword" trackdr/gpucaffeipythondockeralt; sudo docker ps

OR Clone this repo and build and run docker instance: git clone; sudo docker build gpucaffeipythondockeralt; cd /usr/local/cuda-7.0/samples/1_Utilities/deviceQuery; make; /home/ubuntu/NVIDIA_CUDA-7.0_Samples/bin/x86_64/linux/release/deviceQuery; DOCKER_NVIDIA_DEVICES="--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm"; sudo docker run -d $DOCKER_NVIDIA_DEVICES -v /home/ubuntu/mycert.pem:/mycert.pem -p 5910:8888 -e "PASSWORD=replacethispassword" gpucaffeipythondockeralt; sudo docker ps

Run downloaded samples for cuda:

chmod +x; ./ -extract=`pwd`; ./cuda-samples-linux-*.run -noprompt; cd /usr/local/cuda-7.0/samples/1_Utilities/deviceQuery; make; ../../bin/x86_64/linux/release/deviceQuery

cd /opt/caffe; make runtest

List containers:

sudo docker ps

Attach to instance:

sudo docker exec -it containerid bash

You can’t perform that action at this time.