Containers

Explain container image layers

Difficulty: unrated

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

Answer

  • The layers of an image is where all the content is stored - code, files, etc.
    • Each layer is independent
    • Each layer has an ID that is an hash based on its content
    • The layers (as the image) are immutable which means a change to one of the layers can be easily identified