![]() ![]() Path where the image should be stored after squashing. tmp-dir TMP_DIR Temporary directory to be created and used t TAG, -tag TAG Specify the tag to be used for the new image. Specified will squash all layers in the image ID of the layer or image ID or image name. d, -development Does not clean up after failure for easier debugging h, -help show this help message and exit Squashed image can be loaded back to the Docker daemon or stored as tar archive somewhere.Support for Docker 1.9 or newer (older releases may run perfectly fine too, try it!).Can squash from a selected layer to the end (not always possible, depends on the image).We can control the structure of the image. Having an image with multiple (in almost all cases) unnecessary layers. Squashing helps with organizing images in logical layers. This a waste of time (more data to push/load/save) and resources (bigger image). ![]() Docker willĬarry this unnecessary layer always with the image, even if you delete these files in next Only temporary files (for example product distribution that you want to unpack). With files you want to make available in the image. For example a Dockerfile ADD instruction creates a single layer Sometimes it's not necessary or desireable Docker creates many layers while building the image. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |