linuxMint19.1搭建深度学习环境之docker-ce和nvidia-docker2安装

linuxMint19.1搭建深度学习环境

在本地安装好Docker后, 5:18.09.7~3-0~ubuntu-bionic,启动GPU版本的dl-docker.

nvidia-docker run -it -p 8888:8888 -p 6006:6006 -v /sharedfolder:/root/sharedfolder floydhub/dl-docker:gpu bash

提示nvidia-docer不存在,不识别,安装相应得nvidia-docker2软件,命令如下:
 

sudo apt-get install nvidia-docker2 -y


nvidia-docker2 : Depends: docker-ce (= 5:18.09.7~3-0~ubuntu-bionic) but 5:18.09.7~3-0~debian-buster is to be installed or                            docker-ee (= 5:18.09.7~3-0~ubuntu-bionic) but it is not installable

经过多番查找,找到nvidia-docker的github地址:

 

https://github.com/NVIDIA/nvidia-docker,本打算根据这个来make,make install。但是还是提示错误,没走通。
在网上找了一下相关的文档浏览

ubuntu16.04下docker和nvidia-docker安装,但还是没解决问题,都是Docker-CE版本问题。官方的userguide也不行。

最终得到以下解决方案,在以下链接中,根据需要版本,下载相应版本的Docker-CE。

https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/amd64/docker-ce_18.09.7~3-0~ubuntu-bionic_amd64.deb

安装Docker-ce完成后,执行命令。

sudo apt-get install nvidia-docker2 -y

提示以下信息,成功安装Nvidia-docker
 

Configuration file '/etc/docker/daemon.json'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** daemon.json (Y/I/N/O/D/Z) [default=N] ?  

 

你可能感兴趣的:(深度学习环境)