Libnvidia-encode.so is present on host but not available in Docker container with --gpus all

Hello,

I have a system with NVIDIA driver 570.x installed on Ubuntu 20.04.
The file /usr/lib/x86_64-linux-gnu/libnvidia-encode.so is present on the host and nvidia-smi works both on the host and inside containers.
I use nvidia-container-toolkit and run containers with --gpus all, but inside any container (even official nvidia/cuda images) the library libnvidia-encode.so is missing in /usr/lib/x86_64-linux-gnu/.
Other NVIDIA libraries are present and GPU is visible.

  • Host: Ubuntu 20.04, NVIDIA driver 570.x (not server/open)
  • nvidia-container-toolkit is installed and up to date
  • /usr/lib/x86_64-linux-gnu/libnvidia-encode.so* exists on host
  • No NVIDIA driver is installed in the container
  • Docker default runtime is set to nvidia
  • nvidia-smi works in container

How can I make libnvidia-encode.so available inside the container?
Is there a known issue with this driver version or toolkit?
What else should I check?

Thank you!