Purpose of Docker in DevOps

Question:
What is the purpose of using Docker in a DevOps environment?

  1. To create virtual machines
  2. To provide a platform for building, shipping, and running applications in containers
  3. To manage source code versions
  4. To automate manual testing
Answer:
B - is the correct answer