Skip to content

Instantly share code, notes, and snippets.

@dsdenes
Created August 14, 2016 11:22
Show Gist options
  • Save dsdenes/d9c66361df96bce3fca8f1414bb14bce to your computer and use it in GitHub Desktop.
Save dsdenes/d9c66361df96bce3fca8f1414bb14bce to your computer and use it in GitHub Desktop.
nvidia-docker install on Ubuntu 16.04
#!/bin/bash
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main > /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker docker.io
sudo apt-get install linux-image-extra-$(uname -r)
sudo apt-get install docker-engine
sudo service docker start
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.0-rc.3/nvidia-docker_1.0.0.rc.3-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb
@hegdedarsh
Copy link

Got the below error , is it bcoz of the processor , as it clearly says i386

nvidia-docker_1.0.0.rc.3-1_amd64.de 100%[==================================================================>] 2.15M 501KB/s in 5.1s

2017-09-12 11:07:13 (432 KB/s) - ‘/tmp/nvidia-docker_1.0.0.rc.3-1_amd64.deb’ saved [2255774/2255774]

dpkg: error processing archive /tmp/nvidia-docker_1.0.0.rc.3-1_amd64.deb (--install):
package architecture (amd64) does not match system (i386)
Errors were encountered while processing:
/tmp/nvidia-docker_1.0.0.rc.3-1_amd64.deb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment