/nvidia-docker

Build and run Docker containers leveraging NVIDIA GPUs

Primary LanguageMakefileApache License 2.0Apache-2.0

NVIDIA Container Toolkit

GitHub license

NOTE: The nvidia-docker2 package that is generated by this repository is a meta package that only serves to introduce a dependency on nvidia-container-toolkit package which includes all the components of the NVIDIA Container Toolkit.

The nvidia-docker wrapper script that was included in this repository is no longer included in the package and a configuration specific to the target container engine (e.g. Docker, Containerd, Cri-o, or Podman) is suggested instead.

For Docker users specifically, the NVIDIA Container Toolkit CLI (nvidia-ctk) includes functionality to ensure that the nvidia runtime has been registered with the Docker daemon. Installing the NVIDIA Container Toolkit and running:

sudo nvidia-ctk runtime configure

will load (or create) an /etc/docker/daemon.json file and ensure that the NVIDIA Container Runtime is configured as a runtime named nvidia.

Restarting the Docker daemon is required for this to take affect.

For further instructions, see the NVIDIA Container Toolkit documentation and specifically the user guide.

Issues and Contributing

Checkout the Contributing document!