Containers

True or False? Multiple images can share layers

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

True.

One evidence for that can be found in pulling images. Sometimes when you pull an image, you'll see a line similar to the following:

fa20momervif17: already exists

This is because it recognizes such layer already exists on the host, so there is no need to pull the same layer twice.