This post introduces the installation procedure for the docker (community edition) as well as nvidia-docker v1.0.1.

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update 
$ apt-cache policy docker-ce
$ sudo apt-get install -y docker-ce
$ sudo usermod -aG docker ${USER}
$ wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
$ sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb
$ sudo reboot

Note: You may need to run sudo service restart nvidia-docker

Leave a comment