将dockerGPU化

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:

  Ubuntu 14.04 Ubuntu 16.04 Ubuntu 18.04 Debian 8 Debian 9 Centos 7 RHEL 7 Amazon Linux 1 Amazon Linux 2
x86_64 X X X X X X X X X
ppc64le   X X            

Debian-based distributions

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  apt-key add -
distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | \
  tee /etc/apt/sources.list.d/nvidia-docker.list
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 | \
  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)}
rpm -e gpg-pubkey-f796ecb0
gpg --homedir /var/lib/yum/repos/$(uname -m)/$DIST/nvidia-docker/gpgdir --delete-key f796ecb0
yum makecache

Debian-based distributions

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  apt-key add -

 

你可能感兴趣的:(Docker)