Unable to use ffmpeg hwaccel

I’m following these instructions for using hwacceleration on ffmpeg https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/#compiling-for-linux

System:
OS: Ubuntu 20.04 docker
GPU: RTX3080

When I’m trying to test the installation with the recommended command I get the following error: