hello savunmasad,
am I understand correctly that you’d verified the camera basic functionality?
you may also check the memory and SWAP usage by running $ sudo tegrastats
outside of the container, please check much total SWAP capacity is reported.
BTW,
please also refer to Topic 159173 for similar issue, it has solution of camera freezes while training models.
thanks