Containers

What is a distribution hash in regards to layers?

Difficulty: unrated

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

Answer

  • Layers are compressed when pushed or pulled
    • distribution hash is the hash of the compressed layer
    • the distribution hash used when pulling or pushing images for verification (making sure no one tempered with image or layers)
    • It's also used for avoiding ID collisions (a case where two images have exactly the same generated ID)