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 ...