Tổng quan
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.
Tính năng chính
- 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.
Yêu cầu, cài đặt và bắt đầu nhanh
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.
Cách sử dụng
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.
Khả năng tương thích của mô hình và trường hợp sử dụng
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.
Ghi chú về giấy phép và rủi ro
The repository uses Apache-2.0. GPU drivers, CUDA images and deployed models may have different terms.