Hi there,
I’ve noticed that there’s a failure whilst building modules with that Dockerfile:
[main] DKMS: install completed.
[main] Building initial module for 5.2.10-yocto-standard
[main] Error! Bad return status for module build on kernel: 5.2.10-yocto-standard (x86_64)
[main] Consult /var/lib/dkms/nvidia/390.116/build/make.log for more information.
Looking at the build logs, there’s a problem with redefinition of a function in one of the headers. It looks like 390 was actually pretty broken, and I tracked the issue down to this: https://devtalk.nvidia.com/default/topic/1054883/linux/nvidia-390-116-cannot-build-modules-on-fedara-30-kernel-5-1-5-300-fc30-x86_64/
Can you try with RUN apt-get install -y nvidia-driver-435
instead of RUN apt-get install -y nvidia-driver-390
as this seems to build cleanly, and let us know how it goes?
Best regards,
Heds