Tensorflow docker 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?
You can modify the Dockerfile to include the cv2 installation. Then rebuild the image.
You have to commit the changes to docker image. https://docs.docker.com/engine/reference/commandline/commit/