ubuntu16.04下docker和nvidia-docker安装
1、sudo apt-get remove docker docker-engine docker.io###清楚系统原有docker 如果提示找不到就不用理会2、sudo apt-get update###更新apt-get源3、sudo apt-get install apt-transport-https ca-certificates curl softw...
1、sudo apt-get remove docker docker-engine docker.io ###清楚系统原有docker 如果提示找不到就不用理会
2、sudo apt-get update ###更新apt-get源
3、sudo apt-get install apt-transport-https ca-certificates curl software-properties-common ###安装docker的依赖
4、curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
5、sudo apt-key fingerprint 0EBFCD88
6、sudo add-apt-repository “deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable”
456把docker仓库添加到apt库内
7、sudo apt-get update ####再次跟新
8、sudo apt-get install docker-ce ###开始安装docker
9、apt-cache madison docker-ce ###加载docker
10.sudo docker run hello-world ###验证docker是否安装成功。如果安装完成会有以下提示
Install nvidia-docker and nvidia-docker-plugin
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
Test nvidia-smi 验证是否安装成功执行以下命令看到如下回复就是成功了
nvidia-docker run –rm nvidia/cuda nvidia-smi
更多推荐
所有评论(0)