Sharing a runtime Dynamic Library across the Docker Container

I have developed an library (Ubuntu 20.04) .The library have in-turn have lot of dependencies like OpenCV , Cuda CDNN. The Software Application using separate versions of OpenCV , Cuda , CDNN versions. using Docker , its possible to host the libraries on separate container and execute the application in the separate container.

Any suggestions on it ?

As a container should be self-contained, the clean solution would be to create your own base image where you install all the shared dependencies, and then create application specific images based on your own base image, and run containers based on these images.

1 Like