Envisaging container as a service
We laid a good foundation of the fundamentals of the Docker technology. In this section, we are going to focus on crafting an image with the HTTP service, launch the HTTP service inside the container using the crafted image, and then, demonstrate the connectivity to the HTTP service running inside the container.
Building an HTTP server image
In this section, we are going to craft a Docker image in order to install Apache2 on top of the Ubuntu 16.04 base image, and configure an Apache HTTP server to run as an executable, using the ENTRYPOINT
instruction.
In Chapter 3, Building Images, we illustrated the concept of Dockerfile
to craft an Apache2 image on top of the Ubuntu 16.04 base image. Here, in this example, we are going to extend this Dockerfile
by setting the Apache log path and setting Apache2 as the default execution application, using the ENTRYPOINT
instruction. The following is a detailed explanation of the content of Dockerfile
.
We are going to build...