Any Docker image is made up of different layers. These different layers are something we will fully understand practically when we build our own Docker images. For now, when we imagine any Docker image, we can think of it as a collection of different layers stacked on top of one another.
When we use different versions of the same image on the same machine (for example, version 1 and version 2), these images share many of the same underlying layers.
If we have already set up one version on our system, when we pull or set up the second version, Docker will display "Already exists" for the common layers. This happens because those layers were already downloaded with the first version, saving you time, bandwidth, and local storage space!