Summary

In this chapter, we had an overview of Docker containers, architecture details, and details of the main components of Docker, including a quick overview of Docker Hub. Based on the overview, we tried to compare virtual machines with Docker containers to gain a clear picture of why containers have recently been gaining traction.

After gaining some understanding of virtual machines and containers, we covered the process of installing Docker on a CentOS 6.x virtual machine. We created a hello-world container and Ubuntu and CentOS containers from the images available on Docker Hub.

Our main aim is to use a Tomcat container for deploying a sample Spring application, so we used a Tomcat image and created a container from it for verification. To ...

Get DevOps for Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.