4.2 KiB
4.2 KiB
Repository configuration
In order to setup the nvidia-docker repository for your distribution, follow the instructions below.
If you feel something is missing or requires additional information, please let us know by filing a new issue.
List of supported distributions:
OS Name / Version | Identifier | amd64 / x86_64 | ppc64le | arm64 / aarch64 |
---|---|---|---|---|
Amazon Linux 1 | amzn1 | ✔ | ||
Amazon Linux 2 | amzn2 | ✔ | ||
Amazon Linux 2017.09 | amzn2017.09 | ✔ | ||
Amazon Linux 2018.03 | amzn2018.03 | ✔ | ||
Open Suse Leap 15.0 | sles15.0 | ✔ | ||
Open Suse Leap 15.1 | sles15.1 | ✔ | ||
Debian Linux 9 | debian9 | ✔ | ||
Debian Linux 10 | debian10 | ✔ | ||
Centos 7 | centos7 | ✔ | ✔ | |
Centos 8 | centos8 | ✔ | ✔ | ✔ |
RHEL 7.4 | rhel7.4 | ✔ | ✔ | |
RHEL 7.5 | rhel7.5 | ✔ | ✔ | |
RHEL 7.6 | rhel7.6 | ✔ | ✔ | |
RHEL 7.7 | rhel7.7 | ✔ | ✔ | |
RHEL 8.0 | rhel8.0 | ✔ | ✔ | ✔ |
RHEL 8.1 | rhel8.1 | ✔ | ✔ | ✔ |
RHEL 8.2 | rhel8.2 | ✔ | ✔ | ✔ |
Ubuntu 16.04 | ubuntu16.04 | ✔ | ✔ | |
Ubuntu 18.04 | ubuntu18.04 | ✔ | ✔ | ✔ |
Ubuntu 19.04 | ubuntu19.04 | ✔ | ✔ | ✔ |
Ubuntu 19.10 | ubuntu19.10 | ✔ | ✔ | ✔ |
Ubuntu 20.04 | ubuntu20.04 | ✔ | ✔ | ✔ |
Debian-based distributions
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update
RHEL-based distributions
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
Updating repository keys
In order to update the nvidia-docker repository key for your distribution, follow the instructions below.
RHEL-based distributions
$ DIST=$(sed -n 's/releasever=//p' /etc/yum.conf)
$ DIST=${DIST:-$(. /etc/os-release; echo $VERSION_ID)}
$ sudo rpm -e gpg-pubkey-f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/$DIST/*/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/nvidia-docker/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/nvidia-container-runtime/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/latest/libnvidia-container/gpgdir --delete-key f796ecb0
$ sudo yum update
Amazon Linux (1 and 2)
Be careful to run each instruction one by one!
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/*/nvidia-docker/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/*/nvidia-container-runtime/gpgdir --delete-key f796ecb0
$ sudo gpg --homedir /var/lib/yum/repos/$(uname -m)/*/libnvidia-container/gpgdir --delete-key f796ecb0
$ sudo yum update
Debian-based distributions
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
sudo apt-key add -