安装Nvida-docker:
参考按照官网的指导:https://github.com/NVIDIA/nvidia-docker
If you are not using the official docker-ce package on CentOS/RHEL, use the next section.:
# If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo yum remove nvidia-docker
# Add the package repositories
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
# Install nvidia-docker2 and reload the Docker daemon configuration
sudo yum install -y nvidia-docker2
sudo pkill -SIGHUP dockerd
# Test nvidia-smi with the latest official CUDA image
dock

本文介绍了如何在Linux环境下安装nvidia-docker,并解决了在运行nvidia-docker时遇到的'Unknown runtime specified nvidia'错误。通过参照官方指南和FAQ,成功在容器中启用GPU支持。
最低0.47元/天 解锁文章
2611

被折叠的 条评论
为什么被折叠?



