CICD-444 · NVIDIA Container Toolkit validation
Encyclopedia · GPU and inference infrastructure · All snippets
Previous · CICD-443 · Next · CICD-445
1. Where it fits
- Placement CI run step or authorized lab terminal.
- Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
CUDA_IMAGE.
2. Copy the snippet
bash
docker run --rm --gpus all "${CUDA_IMAGE:?}" nvidia-smi --query-gpu=name --format=csv,noheader3. How it works
Docker requests GPU devices for the container. Running nvidia-smi inside it proves the runtime exposed a visible device to that container.
4. Verify the result
Use an approved CUDA image digest. A host nvidia-smi alone does not verify container passthrough.
Validation syntax-validated (Bash parse). Status definitions.