issues
search
anancds
/
document
MIT License
1
stars
0
forks
source link
install nvidia-docker
#162
Open
anancds
opened
3 years ago
anancds
commented
3 years ago
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo apt-get purge -y nvidia-docker
anancds
commented
3 years ago
这里可以先下载下来,然后执行:sudo apt-key add gpgkey
curl -s -L
https://nvidia.github.io/nvidia-docker/gpgkey
| \ sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
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
anancds
commented
3 years ago
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
anancds
commented
3 years ago
docker run --runtime=nvidia --rm nvidia/cuda:10.1-base nvidia-smi