NCP-AII Question 113
Select 3You are tasked with setting up a development environment for AI workloads using Docker on a system with NVIDIA GPUs. As part of the setup, you need to install the NVIDIA Container Toolkit. After installing the NVIDIA drivers, which of the following steps are required to properly install and configure the NVIDIA Container Toolkit?
- A
Add the NVIDIA Container Toolkit repository and install the nvidia-container-toolkit package.
- B
Verify Docker is running and supported by the NVIDIA Container Toolkit.
- C
Run the command 'nvidia-smi' to verify the NVIDIA drivers are properly installed.
- D
Edit the Docker daemon configuration to use the NVIDIA runtime.
- E
Restart the host system to apply all changes.
Show answer and explanation
Correct answers: A, B, D
Explanation
Installing the NVIDIA Container Toolkit involves multiple steps, including adding the repository, installing the toolkit package, verifying Docker's compatibility, and configuring the Docker daemon to use the NVIDIA runtime. Restarting the system is not typically required, and running 'nvidia-smi' is useful for driver verification but not part of the toolkit installation process.
- A. Correct.
Correct. Adding the NVIDIA Container Toolkit repository and installing the toolkit package is a necessary step to set up the NVIDIA runtime for Docker.
- B. Correct.
Correct. Ensuring Docker is running and properly configured is a prerequisite for the NVIDIA Container Toolkit to function.
- C. Incorrect.
Incorrect. While 'nvidia-smi' can confirm the NVIDIA drivers are installed, this step is not part of installing or configuring the NVIDIA Container Toolkit.
- D. Correct.
Correct. Configuring the Docker daemon to use the NVIDIA runtime ensures that containers can access the GPUs properly.
- E. Incorrect.
Incorrect. Restarting the host system is generally unnecessary for this installation process unless explicitly required in rare cases.