NCA Containerization & NGC Catalog 2 — Questions and Answers
Question 1: Which command is used to pull an NVIDIA NGC container image to a local system using Docker?
- docker fetch nvcr.io/<org>/<image>:<tag>
- docker pull nvcr.io/<org>/<image>:<tag> (Correct answer)
- ngc pull <org>/<image>:<tag>
- nvidia-docker download nvcr.io/<org>/<image>:<tag>
Correct answer: docker pull nvcr.io/<org>/<image>:<tag>
The standard `docker pull nvcr.io/<org>/<image>:<tag>` command retrieves NGC container images from the NGC container registry.
Question 2: What is the purpose of the NGC Private Registry in the NGC Catalog?
- To store publicly available NVIDIA-optimized frameworks
- To host only NVIDIA driver packages for download
- To allow organizations to store and share proprietary container images securely (Correct answer)
- To provide free GPU cloud compute instances
Correct answer: To allow organizations to store and share proprietary container images securely
The NGC Private Registry allows enterprises to securely store, manage, and share their own proprietary container images within their organization.
Question 3: When running an NGC container with GPU access using Docker, which runtime flag must be specified?
- --gpu-enable
- --nvidia-runtime
- --gpus all (Correct answer)
- --cuda-device 0
Correct answer: --gpus all
The `--gpus all` flag (or `--gpus device=<id>`) is required to expose GPU devices to a Docker container via the NVIDIA Container Toolkit.
Question 4: Which component of the NVIDIA Container Toolkit acts as the interface between the container runtime and the GPU driver?
- libnvidia-container (Correct answer)
- nvidia-docker2
- CUDA Toolkit
- NCCL library
Correct answer: libnvidia-container
libnvidia-container is the core library that mounts GPU drivers and CUDA libraries into containers, enabling GPU access from within them.
Question 5: In NGC Catalog terminology, what does a 'Helm Chart' resource type provide?
- A pre-built binary executable for GPU workloads
- A Kubernetes deployment package for AI/ML applications (Correct answer)
- A Python wheel package for deep learning frameworks
- A VM image pre-installed with CUDA
Correct answer: A Kubernetes deployment package for AI/ML applications
Helm Charts in the NGC Catalog are Kubernetes deployment packages that simplify deploying AI/ML applications onto Kubernetes clusters.
Question 6: What is the significance of the 'ea' tag suffix on some NGC container images?
- It denotes an End-of-life Archived build
- It indicates an Early Access release not yet fully production-ready (Correct answer)
- It marks an Encrypted Archive for secure distribution
- It signifies an Enterprise Authorized version
Correct answer: It indicates an Early Access release not yet fully production-ready
The 'ea' tag suffix stands for Early Access, indicating the container is a preview release that may not be fully stable for production use.
Question 7: Which NGC CLI command lists all available versions of a specific container image?
- ngc registry image list <org>/<image> (Correct answer)
- ngc registry image info <org>/<image>
- ngc image versions <org>/<image>
- ngc container list --image <org>/<image>
Correct answer: ngc registry image list <org>/<image>
The `ngc registry image list <org>/<image>` command displays all available tags and versions for a specified container image in the NGC registry.
Which command is used to pull an NVIDIA NGC container image to a local system using Docker?