If you're getting started with Machine Learning/Deep Learning, you know how hard it is to setup the environment just to get started. I have built this docker image to help you out. This image contains most of the tools required to do Machine Learning/Deep Learning.
This image can be used on Ubuntu. Steps for installing docker and getting started with the container are given below. Also, this image can be used on AWS, GCP or any cloud platform.
- Ubuntu 14.04
- CUDA 8.0 (GPU version only)
- cuDNN v5 (GPU version only)
- Anaconda 4.4.0 Package (Python 3.6) [Jupyter Notebook included]
- Keras
- Tensorflow
- PyTorch
- MXNet
- Caffe
- OpenCV
- CNTK
- Installing Docker
- Installing Docker on Ubuntu 14.04:
sudo bash InstallDocker/docker_install1404.sh
- Installing Docker on Ubuntu 16.04 or above:
sudo bash InstallDocker/docker_install1604.sh
- Installing Docker on Ubuntu 14.04:
- Building Docker Image:
sudo docker build -t deeplearningdockercpu -f Dockerfile.cpu .
- Running the Docker Container
sudo docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder deeplearningdockercpu:latest bash
- Installing Docker
- Installing Docker on Ubuntu 14.04:
sudo bash InstallDocker/docker_install1404.sh
- Installing Docker on Ubuntu 16.04 or above:
sudo bash InstallDocker/docker_install1604.sh
- Installing Docker on Ubuntu 14.04:
- Installing NVIDIA-Docker
sudo bash nvidia-docker.sh
- Building Docker Image
sudo docker build -t deeplearningdockergpu -f Dockerfile.gpu .
- Restarting Nvidia-docker
sudo systemctl restart nvidia-docker
- Running the Docker Container
sudo nvidia-docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder deeplearningdockergpu:latest bash
jupyter notebook --allow-root
Note: You can remove -v /sharedfolder:/root/sharedfolder
from CPU as well as GPU if you're running the container on cloud. This command is to just link your local files on the container.
- Removing all containers
sudo docker rm $(sudo docker ps -a -f status=exited -q)
- Removing all images
sudo docker rmi $(sudo docker images -a -q)
If there is any issue, please feel free to open an issue on GitHub or contact me on dhaval.thakkar@somaiya.edu