Open lthero-big opened 1 month ago
如果遇到上述报错,请查看 https://github.com/NVIDIA/nvidia-docker/issues/1034
首先要安装 nvidia-container-toolkit
nvidia-container-toolkit
Installing with Apt Configure the production repository:
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
Optionally, configure the repository to use experimental packages:
sed -i -e '/experimental/ s/^#//g' /etc/apt/sources.list.d/nvidia-container-toolkit.list
Update the packages list from the repository:
sudo apt-get update
Install the NVIDIA Container Toolkit packages:
sudo apt-get install -y nvidia-container-toolkit
再重启 docker
docker
sudo systemctl restart docker
如果遇到上述报错,请查看 https://github.com/NVIDIA/nvidia-docker/issues/1034
首先要安装
nvidia-container-toolkit
Installing with Apt Configure the production repository:
Optionally, configure the repository to use experimental packages:
Update the packages list from the repository:
Install the NVIDIA Container Toolkit packages:
再重启
docker