CentOS 安装nvidia-docker2 2.1设置仓库
$ distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
$ curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.repo | sudo tee /etc/yum.repos.d/nvidia-docker.repo
2.2更新仓库中的key
$ DIST=$(sed -n 's/releasever=//p' /etc/yum.conf)