Ubuntu1604 docker的安装

docker的安装

主要参考链接:

https://mp.weixin.qq.com/s?__biz=MzA3NDIyMjM1NA==&mid=2649035346&idx=1&sn=5a905c9fcc60f51605b24dc62dd8b21b&chksm=8712ac2fb065253949555d6e8a3ffb4f54046c054ebbb7cef580abc244b90c00fd5ea1d8d25e&mpshare=1&scene=1&srcid=&sharer_sharetime=1565948138154&sharer_shareid=027be11c572411dfc53a620357d8d5bd&pass_ticket=H8ay5T8PVG49X92j5%2B9WkyV81qJn6KPjele1UrV07eFxCzJQfYeXtfeSflFwnJa6#rd

若nvidia-docker run --rm nvidia/cuda nvidia-smi 安装出错:

Ubuntu1604 docker的安装_第1张图片

Ubuntu1604 docker的安装_第2张图片

参考官方安装:

https://github.com/NVIDIA/nvidia-docker
# Add the package repositories
$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
$ curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

$ sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
$ sudo systemctl restart docker

#### Test nvidia-smi with the latest official CUDA image
$ docker run --gpus all nvidia/cuda:9.0-base nvidia-smi

也可以参考以下:

https://mp.weixin.qq.com/s?__biz=MzA3NDIyMjM1NA==&mid=2649032589&idx=1&sn=c7c4f976a4dc0bb18f0e4b8b3e06090e&chksm=8712b9f0b06530e6d2173a50ddb3cbee7e989fd5b21addca8e64054d2b09ca00949fda65bbc6&scene=21#wechat_redirect

https://blog.csdn.net/bingzhongdehuoyan/article/details/79411479

https://www.cnblogs.com/informatics/p/8276172.html

你可能感兴趣的:(ubuntu)