Installing opencv 4.1 on Machine Learning Container for Jetson and JetPack 4.4

I want to install opencv 4.1 on the container.
Isn’t there any easy way to install that like JetPack 4.4 is already having 4.1.

You can download the correct L4T base image for your jetpack version, and then build opencv in the dockerfile. This is a nice approach, since you can choose to install only the contrib modules you want (helps to reduce the size).
Unfortunately NVIDIA does not provide prebuilt containers for opncv, nor are their any reliably working binaries around AFAIK