Go to file
2017-12-19 22:39:34 -08:00
.github Add ISSUE_TEMPLATE 2017-11-16 16:55:42 -08:00
debian Do not depend on non-existing Docker packages 2017-10-30 16:14:38 -07:00
rpm Do not depend on non-existing Docker packages 2017-10-30 16:14:38 -07:00
.dockerignore Add .dockerignore 2017-11-16 21:20:38 -08:00
.gitignore Merge branch '2.0' 2017-11-13 21:10:52 -08:00
CLA Re-add CLA 2017-11-14 21:27:40 -08:00
daemon.json Initial commit for branch 2.0 2017-09-05 19:16:49 -07:00
Dockerfile.centos7 Do not depend on non-existing Docker packages 2017-10-30 16:14:38 -07:00
Dockerfile.stretch Add support for Debian Stretch 2017-11-16 21:20:38 -08:00
Dockerfile.xenial Improve the portability of the debian/control file 2017-09-06 19:24:11 -07:00
LICENSE Document the 2.0 alpha release 2017-10-06 17:50:12 -07:00
Makefile Set version to 2.0.2 2017-12-19 22:39:34 -08:00
nvidia-docker Set version to 2.0.2 2017-12-19 22:39:34 -08:00
README.md Update README 2017-11-30 02:43:05 -08:00

Docker Engine Utility for NVIDIA GPUs

GitHub license Documentation Package repository

nvidia-gpu-docker

Warning: This project is based on an alpha release (libnvidia-container). It is already more stable than 1.0 but we need help testing it.

Documentation

The full documentation and frequently asked questions are available on the repository wiki.

Quickstart

Make sure you have installed the NVIDIA driver and a supported version of Docker for your distribution (see prerequisites).

If you have a custom /etc/docker/daemon.json, the nvidia-docker2 package might override it.

Xenial x86_64

# If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo apt-get purge -y nvidia-docker

# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | \
  sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/ubuntu16.04/amd64/nvidia-docker.list | \
  sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update

# Install nvidia-docker2 and reload the Docker daemon configuration
sudo apt-get install -y nvidia-docker2
sudo pkill -SIGHUP dockerd

# Test nvidia-smi with the latest official CUDA image
docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi

CentOS/RHEL 7 x86_64

# If you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
docker volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
sudo yum remove nvidia-docker

# Add the package repositories
curl -s -L https://nvidia.github.io/nvidia-docker/centos7/x86_64/nvidia-docker.repo | \
  sudo tee /etc/yum.repos.d/nvidia-docker.repo

# Install nvidia-docker2 and reload the Docker daemon configuration
sudo yum install -y nvidia-docker2
sudo pkill -SIGHUP dockerd

# Test nvidia-smi with the latest official CUDA image
docker run --runtime=nvidia --rm nvidia/cuda nvidia-smi

Other distributions and architectures

Look at the Installation section of the wiki.

Issues and Contributing

A signed copy of the Contributor License Agreement needs to be provided to digits@nvidia.com before any change can be accepted.