Next, we will install Podman with the following commands.
For help with podman documentation and syntax, please refer to the official podman documentation.
Sudo yum update -y
Sudo yum install epel-release -y
Sudo yum install podman -y
Optional
To check your podman version, run the following:
Podman –version
Podman info
Follow the Step 2: Install NVIDIA Container Toolkit to install the NVIDIA Container Toolkit.
Single GPU
#### Test nvidia-smi with the latest official CUDA image
$ sudo podman run --rm --gpus all nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
Multiple GPUs
#### Test nvidia-smi with the latest official CUDA image on two GPUs
$ sudo podman run --rm --gpus 2 nvidia/cuda:11.0.3-base-ubuntu20.04 nvidia-smi
This test should output nvidia-smi information. Additional information on advanced configuration can be found here.