
Recently, I was asked about Docker’s memory consumption. Before diving into the details, it’s crucial to clarify whether we’re referring to RAM or storage.” When it comes to file system storage, Docker images are built upon a series of distinct layers. The effective size of an image is the sum of its distinct layers. It’s…

Here, I want to focus on how companies can create Docker images in a way that takes full advantage of how Docker layers are constructed and how they’re stored on disk. Many companies that use Docker follow one of two strategies: either each team is fully responsible for creating and maintaining its own images, or…

When we look at how Docker images are layered, it raises questions about how they are stored. Take a Node application as an example: it’s built on top of a base image (node), and then several steps are added to create the final application image. Before building our image, let’s first see where Docker actually…

When working with Docker, we create images from a file called a Dockerfile — like a recipe that describes step by step how the image should be built. It usually starts with a base image, and from there Docker runs instructions to add dependencies, install packages and libraries, generate keys, create users and directories, and…