MCPcopy Index your code
hub / github.com/NVIDIA/nvidia-container-toolkit

github.com/NVIDIA/nvidia-container-toolkit @v1.19.1 sqlite

repository ↗ · DeepWiki ↗ · release v1.19.1 ↗
2,185 symbols 7,644 edges 399 files 1,107 documented · 51% 1 cross-repo links
README

NVIDIA Container Toolkit

GitHub license Documentation Package repository

nvidia-container-stack

Introduction

The NVIDIA Container Toolkit allows users to build and run GPU-accelerated containers. The toolkit includes a container runtime library and utilities to automatically configure containers to leverage NVIDIA GPUs.

Product documentation including an architecture overview, platform support, and installation and usage guides can be found in the documentation repository.

Getting Started

Make sure you have installed the NVIDIA driver for your Linux Distribution Note that you do not need to install the CUDA Toolkit on the host system, but the NVIDIA driver needs to be installed

For instructions on getting started with the NVIDIA Container Toolkit, refer to the installation guide.

Usage

The user guide provides information on the configuration and command line options available when running GPU containers with Docker.

Issues and Contributing

Checkout the Contributing document!

Extension points exported contracts — how you extend this code

Locator (Interface)
go:generate moq -rm -fmt=goimports -stub -out locator_mock.go . Locator Locator defines the interface for locating files [9 …
pkg/lookup/locator.go
DeviceSpecGenerator (Interface)
A DeviceSpecGenerator is used to generate the specs for one or more devices. [6 implementers]
pkg/nvcdi/api.go
Loader (Interface)
Loader represents a source for a toml config. [6 implementers]
pkg/config/toml/source.go
LDCache (Interface)
LDCache represents the interface for performing lookups into the LDCache go:generate moq -rm -fmt=goimports -out ldcach [6 …
internal/ldcache/ldcache.go
Discover (Interface)
Discover defines an interface for discovering the devices, mounts, and hooks available on a system go:generate moq -rm [8 …
internal/discover/discover.go
SpecModifier (Interface)
SpecModifier defines an interface for modifying a (raw) OCI spec [11 implementers]
internal/oci/spec.go
Installer (Interface)
go:generate moq -rm -fmt=goimports -out installer_mock.go . Installer [7 implementers]
cmd/nvidia-ctk-installer/toolkit/installer/installer.go
UUIDer (Interface)
(no doc) [6 implementers]
internal/platform-support/dgpu/nvsandboxutils.go

Core symbols most depended-on inside this repo

Errorf
called by 691
internal/logger/api.go
Run
called by 161
tests/e2e/runner.go
EnvVars
called by 92
internal/discover/discover.go
Infof
called by 89
internal/logger/api.go
Warningf
called by 81
internal/logger/api.go
New
called by 75
internal/edits/edits.go
Run
called by 75
internal/runtime/api.go
Debugf
called by 66
internal/logger/api.go

Shape

Method 950
Function 769
Struct 280
TypeAlias 100
Interface 55
FuncType 31

Languages

Go100%

Modules by API surface

pkg/nvcdi/options.go32 symbols
pkg/nvcdi/lib-csv.go27 symbols
internal/config/image/cuda_image.go25 symbols
pkg/config/toml/toml.go24 symbols
api/config/v1/toml.go24 symbols
internal/platform-support/tegra/mount_specs.go23 symbols
internal/discover/hooks.go23 symbols
cmd/nvidia-ctk/system/create-dev-char-symlinks/create-dev-char-symlinks.go23 symbols
internal/platform-support/tegra/filter.go22 symbols
pkg/nvcdi/namer.go21 symbols
pkg/config/engine/config.go21 symbols
internal/ldconfig/ldconfig.go20 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

cyphar.com/go-pathrsv0.2.4 · 1×
github.com/Masterminds/semver/v3v3.4.0 · 1×
github.com/NVIDIA/go-nvlibv0.9.1-0.20251202135 · 1×
github.com/NVIDIA/go-nvmlv0.13.0-1.0.20260212 · 1×
github.com/containerd/logv0.1.0 · 1×
github.com/containerd/nriv0.11.0 · 1×
github.com/containerd/ttrpcv1.2.7 · 1×
github.com/cyphar/filepath-securejoinv0.6.1 · 1×
github.com/go-logr/logrv1.4.3 · 1×
github.com/go-task/slim-sprig/v3v3.0.0 · 1×

For agents

$ claude mcp add nvidia-container-toolkit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact