Docker library sharing from host to container: Difference between revisions

From HPCWIKI
Jump to navigation Jump to search
(Created page with "From Docker and micro service point of view, the best practices of Docker are to package the library into the image, and not rely on a library file being present on the host. however, sometime sharing host library to container would be helpful to reduce redundancy and reduce size of Docker images. One of example would be CUDA tool kit, for example, install various version of CUDA toolkit on host and volume mouting when container start with read only. this method will...")
 
No edit summary
 
Line 2: Line 2:




One of example would be [[CUDA]] tool kit, for example, install various version of CUDA toolkit on host and volume mouting when container start with read only. this method will save significant amount of storage space of docker image and easy to change version of CUDA for the application inside of container.   
One of example would be [[CUDA]] tool kit, for example, install various version of CUDA toolkit on host and volume mouting when container start with read only. this method will save significant amount of storage space of docker image size and layers and easy to change version of CUDA for the application inside of container.   


== References ==
== References ==
<references />
<references />

Latest revision as of 17:33, 25 May 2023

From Docker and micro service point of view, the best practices of Docker are to package the library into the image, and not rely on a library file being present on the host. however, sometime sharing host library to container would be helpful to reduce redundancy and reduce size of Docker images.


One of example would be CUDA tool kit, for example, install various version of CUDA toolkit on host and volume mouting when container start with read only. this method will save significant amount of storage space of docker image size and layers and easy to change version of CUDA for the application inside of container.

References