Error using docker & nvidia-container-toolkit on Pegasus

Please provide the following info:
Hardware Platform: [DRIVE AGX Pegasus™ Developer Kit]
Software Version: [DRIVE Software 10]
Host Machine Version: [native Ubuntu 18.04]
SDK Manager Version: [1.3]
docker version: 19.03.13
nvidia-container-toolkit installed

I tried to use docker image with GPU on Pegasus.
I installed docker & nvidia-container-toolkit just after flashing.
But the follow error occurs.
Becuase cuda is installed during flashing, the nvidia driver should have to be installed.
But I cannot find the driver and nvidia-smi is unavailable.
Do I have to install Nvidia drivers for GPU ? How to use the GPU?

nvidia@tegra-ubuntu:~$ sudo docker run --rm --gpus all nvidia/cuda:11.0-base nvidia-smi
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused “process_linux.go:449: container init caused “process_linux.go:432: running prestart hook 0 caused \“error running hook: exit status 1, stdout: , stderr: nvidia-container-cli: initialization error: driver error: failed to process request\\n\”””: unknown.

Dear @Liang_Qi,
But I cannot find the driver and nvidia-smi is unavailable.

There is no nvidia-smi tool on DRIVE AGX. You can check running deviceQuery CUDA sample(cross compile the sample on host) to know GPU details

Do I have to install Nvidia drivers for GPU ? How to use the GPU?

It is already part of DRIVE SW. You can write/run some CUDA samples to check running apps on GPU.

Thanks @SivaRamaKrishnaNV.

So could you tell me how to solve the error in my first post?

Dear @Liang_Qi,
Could you check if the discussion on Docker exec fails on xavier helps?

I checked the post, but it seems different to my problem.
I can run docker hello-world with no problem.
But when I tried to run docker image using GPU, the error occurs.

I installed docker following the link https://docs.docker.com/engine/install/ubuntu/
and installed nvidia-container-toolkit with the following commands.

distribution=$(. /etc/os-release;echo $ID$VERSION_ID)
curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -
curl -s -L https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list
sudo apt-get update && sudo apt-get install -y nvidia-container-toolkit
sudo systemctl restart docker