Tipically when libcudnn is not found it means that the path is missing in ld_library_path env variable.
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
source ~/.bashrc
Anyway, I am not sure that this will 100% solve the problem, if you need a custom container you can create one from scratch using pre-configured nvidia’s images. You can have a look here for reference: GitHub - DanielRossi1/AutoDock: The perfect environment for your AI Research Project!