NCP-AII Question 114
Single answerYou are tasked with setting up an environment for deploying GPU-accelerated containers on a Linux system. As part of configuring the system, you need to install the NVIDIA Container Toolkit. Which step is a required part of the installation process to ensure compatibility with Docker?
- A
Install the NVIDIA graphics driver compatible with your GPU
- B
Use 'nvidia-container-cli' to manually map GPUs to Docker containers
- C
Add the NVIDIA Container Toolkit repository and install the nvidia-container-runtime
- D
Rebuild the Linux kernel to integrate the NVIDIA Container Toolkit
Show answer and explanation
Correct answer: C
Explanation
The NVIDIA Container Toolkit allows Docker to use GPUs by integrating the NVIDIA runtime. A critical step in this installation process is adding the NVIDIA Container Toolkit repository and installing the 'nvidia-container-runtime'. This ensures Docker can access the GPUs correctly via the NVIDIA runtime.
- A. Incorrect.
While installing a compatible NVIDIA graphics driver is a prerequisite for GPU usage, it is not a direct step in the NVIDIA Container Toolkit installation process for Docker.
- B. Incorrect.
Using 'nvidia-container-cli' is not required during the installation process. It is a command-line utility used for runtime configurations after installation.
- C. Correct.
Adding the NVIDIA Container Toolkit repository and installing the nvidia-container-runtime are essential steps to enable Docker to recognize and utilize GPUs via the NVIDIA runtime.
- D. Incorrect.
Rebuilding the Linux kernel is unnecessary for installing the NVIDIA Container Toolkit. The toolkit integrates with Docker without requiring kernel modifications.