Containers

In which scenarios would you use containers and in which you would prefer to use VMs?

Difficulty: unrated

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

Answer

You should choose VMs when:

  • You need run an application which requires all the resources and functionalities of an OS
  • You need full isolation and security

You should choose containers when:

  • You need a lightweight solution
  • Running multiple versions or instances of a single application