The main exceptions are when required packages are available in Debian but not Alpine, or where glibc has to be used rather than musl due to application dependencies.īut we can still go further. Alpine uses the busybox tool suite and musl amongst other techniques to cut things down much further, to around 5 MB!Īll other things being equal, Alpine’s size savings make it the most appealing choice. The savings are mainly in removing documentation and locale files. debian:11-slim, which clocks in around 74 MB, compared to 118 MB for the full image. You can find “slim” variants of the official Debian images on the Docker Hub such as. The two options I usually recommend for slimming down a base image are: The result is a base image that software teams can easily build on, installing additional packages with a package manager. One powerful way to reduce complexity is to cut down Linux distributions to their bare bones. The less complex the image - and the fewer binaries and packages in it - the lower the risk of something going wrong or being targeted by hackers In container images, size is often used as a proxy for a more useful measure: the number of components in an image, or its complexity. The first point worth making is that size isn’t everything. How small could container images get? What could be stripped out and what's needed to remain for the container to be useful? This post will walk through the typical approaches in this space - minimal distributions, scratch and “distroless” - finishing with a look at Chainguard’s new, improved version of distroless. Software developers quickly started taking this further. System lsb_release -aĭescription: Debian GNU/Linux 8.4 (jessie)Īcquire::Check-Valid-Until cat /etc/apt/sources.When Docker kicked off the great container wave, one of the big advantages, compared to virtual machines, was the speed and size of containers. Please see the current configuration inside the Linux container. I am not able to run the apt-get update command after container creation successfully. I have created a Linux Container using below command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |