$ sudo apt update && sudo apt upgrade -y && sudo apt install docker.io -y
-
Add the docker group if it doesn't already exist:
$ sudo groupadd docker
-
Add the connected user "$USER" to the docker group. Change the user name to match your preferred user if you do not want to use your current user:
$ sudo gpasswd -a $USER docker
-
Either do a newgrp docker or log out/in to activate the changes to groups.
$ newgrp docker
$ sudo apt update && apt upgrade -y
$ sudo apt install gcc -y
$ sudo apt install build-essential -y
- Download CUDA:
runfile (local)
- Check the md5 sum:
md5sum cuda_9.1.85_387.26_linux.run
$ sudo sh cuda_9.1.85_387.26_linux --override
$ sudo emacs -nw /etc/ld.so.conf.d/cuda.conf
/usr/local/cuda-9.1/lib64
$ sudo emacs -nw ~/.bash_profile
export PATH=$PATH:/usr/local/cuda-9.1/bin
$ source ~/.bash_profile
$ nvcc -V
$ nvidia-smi
$ sudo apt remove docker docker-engine docker.io
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
sudo apt install docker-ce -y
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt update
sudo apt install nvidia-docker2 -y
sudo pkill -SIGHUP dockerd
docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi
TODO: daocloud.io