How to Setup a Simple Apache Web Server in a Docker Container

In this article we will explain how to install Docker on CentOS 7 and Ubuntu 16.04, and spin up an Apache 2.4 container from Docker Hub. We will then use it to serve a simple web page from our home directory – all without the need to install a web server on our host.