Created
August 9, 2023 21:35
-
-
Save matiasinsaurralde/23e25799b7653fdc10d5f6ecb4bc3886 to your computer and use it in GitHub Desktop.
nvidia_helper.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export distribution=$(. /etc/os-release;echo $ID$VERSION_ID) | |
curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg | |
curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | tee /etc/apt/sources.list.d/nvidia-container-toolkit.list | |
apt-get update | |
apt-get install nvidia-container-toolkit -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment