TensorRT doesn’t have CV2 library. Can install lib in nvidia docker using apt-get. But after exiting the docker, the lib doesn’t exist anymore. How can I install permanently in the docker?
Content in docker image are volatile, hence all the packages and data are lost once container is stopped unless data is stored using docker volume.
In this case to get the OpenCV installed on launch of container, you can create a new dockerfile using current image as base image and add all additional dependencies.
You can then build a new docker image using this dockerfile, it should include all the features of orignial docker images along with additional dependencies already installed.
Yes I followed this link.