Hi,
It seems that the GPU driver of the container is incompatible with the library of the Nano native.
So you can run deviceQuery natively but meet errors within the docker.
Could you check which JetPack do you use for Nano first?
$ cat /etc/nv_tegra_release
Then please try to use the same l4t-base to see if it works.
Thanks.