Обзор
NVIDIA Container Toolkit connects the host driver and container runtime so containers can access GPU devices and required driver components. It is infrastructure for GPU-enabled images rather than an AI model. Validate the host, runtime and a simple test container before introducing a model-serving image; this separates driver issues from runtime configuration and application dependencies.
Основные функции
- Provides runtime integration for GPU containers.
- Includes the nvidia-ctk configuration utility.
- Documents Docker runtime configuration.
- Documents paths for runtimes including containerd and CRI-O.
- Supports device access configuration for different deployment modes.
- Works with CUDA application images for model workloads.
Требования, установка и быстрый старт
2. Configure NVIDIA’s package repository following the guide for your distribution.
3. Install the documented Container Toolkit packages, pinning versions when required.
4. For Docker, run sudo nvidia-ctk runtime configure --runtime=docker.
5. Apply the configuration with sudo systemctl restart docker during an appropriate maintenance window.
6. Follow the official sample workload with --gpus all and verify GPU visibility inside the container before starting a model image.
Использование
Implementation notes
Restarting Docker affects running workloads, so schedule the configuration change. Rootless Docker, containerd and CRI-O require their own setup steps rather than the complete standard Docker command sequence.
Совместимость моделей и варианты использования
Requires a supported Linux environment, an NVIDIA GPU driver and a container runtime. The host does not need the CUDA Toolkit installed, but it does need the NVIDIA driver. The container’s CUDA requirements must still be compatible with that driver.
Лицензия и примечания о рисках
The repository uses Apache-2.0. GPU drivers, CUDA images and deployed models may have different terms.