NVIDIA/nvidia-docker

Name: nvidia-docker

Owner: NVIDIA Corporation

Description: Build and run Docker containers leveraging NVIDIA GPUs

Created: 2015-11-04 18:04:49.0

Updated: 2018-01-18 17:54:31.0

Pushed: 2018-01-12 23:54:00.0

Homepage:

Size: 17445

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Docker Engine Utility for NVIDIA GPUs

GitHub license Documentation Package repository

nvidia-gpu-docker

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
 you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
er volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
 apt-get purge -y nvidia-docker

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

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

st nvidia-smi with the latest official CUDA image
er run --runtime=nvidia --rm nvidia/cuda nvidia-smi
CentOS/RHEL 7 x86_64
 you have nvidia-docker 1.0 installed: we need to remove it and all existing GPU containers
er volume ls -q -f driver=nvidia-docker | xargs -r -I{} -n1 docker ps -q -a -f volume={} | xargs -r docker rm -f
 yum remove nvidia-docker

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

stall nvidia-docker2 and reload the Docker daemon configuration
 yum install -y nvidia-docker2
 pkill -SIGHUP dockerd

st nvidia-smi with the latest official CUDA image
er 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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.