安装docker以及nvidia-docker
2017-12-21 本文已影响0人
zhenggeaza
install Docker CE
1、Go to https://download.docker.com/linux/ubuntu/dists/ , choose your Ubuntu version, browse topool/stable/and chooseamd64,armhf,ppc64el, ors390x. Download the.debfile for the Docker version you want to install.
sudo dpkg -i /path/to/package.deb
2、sudo docker run hello-world
Install nvidia-docker and nvidia-docker-plugin
1、wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.1/nvidia-docker_1.0.1-1_amd64.deb
2、sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb
3、# Test nvidia-smi 验证是否安装成功
nvidia-docker run --rm nvidia/cuda nvidia-smi