ubuntu 20.04 安装 NVIDIA Container Toolkit

Simulink_ 2024-07-23 08:07:06 阅读 84

使用官方提供的Apt安装方式,可参考:Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit 1.14.5 documentation

icon-default.png?t=N7T8

https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html当然,官网还提供了其他的安装方式。

1、Configure the production repository:

<code>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



声明

本文内容仅代表作者观点,或转载于其他网站,本站不以此文作为商业用途
如有涉及侵权,请联系本站进行删除
转载本站原创文章,请注明来源及作者。