sudo vi /etc/docker/daemon.json
{
"runtimes": {
"nvidia": {
"path": "/usr/bin/nvidia-container-runtime",
"runtimeArgs": []
}
}
}/*
{
"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com"]
}{
"runtimes": {
"nvidia": {
"path": "/usr/bin/nvidia-container-runtime",
"runtimeArgs": []
}
}
}
*/

[developer@localhost ~]$ sudo docker pull nvidia/cuda:9.0-cudnn7-devel-centos7
sudo docker pull nvidia/cuda: 9.0-cudnn7-devel-ubuntu16.04