使用官方提供的Apt安装方式,可参考:Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit 1.14.5 documentationhttps://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html当然,官网还提供了其他的安装方式。
1、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
2、Optionally, configure the repository to use experimental packages:
sed -i -e '/experimental/ s/^#//g' /etc/apt/sources.list.d/nvidia-container-toolkit.list
3、Update the packages list from the repository:
sudo apt-get update
4、Install the NVIDIA Container Toolkit packages:
sudo apt-get install -y nvidia-container-toolkit
5、安装好之后,查看是否安装成功:
dpkg -l | grep nvidia-container-toolkit
版权归原作者 Simulink_ 所有, 如有侵权,请联系我们删除。