Configuring Web Server on Docker

Vinay Jadhav
Nov 2, 2020

Hi, in this article you will learn about how to configure a httpd Web Server on top of docker.

Let’s Start

  1. Start Docker

2. Download an OS image

3. Launch the container

4. Install Apache httpd server (Make sure that you have stop the firewall in the Base OS)

5. Now enable the httpd Service

6. Install net-tools using yum command

7. Go to /var/www/html directory

8. Create a html file

9. Done, now access the html file from the browser.

Accessing file from browser

That’s all!!

Thank you for reading!

--

--