Containers

What are some best practices in regards to Container Images?

Difficulty: unrated

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

Answer

  • Use tags. Using latest is quite common (which can mean latest build or latest release)
    • tag like 3.1 can be used to reference the latest release/tag of the image like 3.1.6
  • Don't use commit for creating new official images as they include the overhead of logs and processes and usually end up with bigger images
  • For sharing the image, use a registry (either a public or a private one, depends on your needs)