![]() ![]() Other than being an output line in your terminal from which containers can be created, an image is a union file system that is built in layers, essentially performing a patch from each layer. This helps reduce possible issues down the line with unnecessary packages, libraries, and tools that you don’t need. ![]() When you think about your docker image size, it forces you into using only the libraries and tools required for your app to run isolated inside of its container. Disk space is cheap but the IO cost behind it can be expensive. Along with the time saved when deploying, you are also saving disk space. Containers are meant to be as lightweight and small as possible. When deploying your apps, the time difference between a 3GB and a 150MB image is very noticeable. The size of the image may not seem too important to some, but there are many benefits to having smaller docker images.Ī smaller image will allow you to upload and download the images faster. Even if you remove unnecessary files and packages, you’ll still see your image size be much larger than expected. With Docker, it’s easy to end up with images many times larger than they need to be. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |