Here are Dockerfiles to get you up and running with a fully functional deep learning machine. It contains all the popular deep learning frameworks with CPU and GPU support (CUDA and cuDNN included). The CPU version should work on Linux, Windows and OS X. The GPU version will, however, only work on Linux machines. See OS support for details
-
Install Docker following the installation guide for your platform: https://docs.docker.com/engine/installation/
-
GPU Version Only: Install Nvidia drivers on your machine either from Nvidia directly or follow the instructions here. Note that you don't have to install CUDA or cuDNN. These are included in the Docker container.
-
GPU Version Only: Install nvidia-docker: https://github.com/NVIDIA/nvidia-docker, following the instructions here. This will install a replacement for the docker CLI. It takes care of setting up the Nvidia host driver environment inside the Docker containers and a few other things.
docker container ps -a
docker container rm 69b8da54bc43
docker rmi 69b8da54bc43
git clone https://github.com/zhenliu/dl-docker
docker build -t zhenliu/dl-docker:cpu -f Dockerfile.cpu .
docker run -it -p 8888:8888 -p 6006:6006 -v ~/dl_root:/root/dl_root zhenliu/dl-docker:cpu bash
docker start d3b7d7463857
docker exec -it d3b7d7463857 /bin/bash
docker export -o /home/zhenliu/myfile.tar d3b7d7463857
docker import /home/qisun/myfile.tar
docker exec d3b7d7463857 /bin/bash -c "bwa aln mydata >& log" &
docker exec d3b7d7463857 ps -ef
docker container prune