Hello Viewers in today Article we will going to tell you how you can launch your apache webserver on top of the docker container
WEBSERVER ON DOCKER CONTAINER

How To Access The Webpage From Base OS:-
STEP 1:- START DOCKER SERVICES IN YOUR BASE OS
Use command -> service docker start

STEP 2:-> CHECKING IP ADDRESS OF DOCKER CONTAINER AND DOCKER HOST
To check IP ADDRESS we need to first install net-tools using command Yum Install net-tools and then ifconfig command to check docker IP address similarly check both IP docker and your base OS redhat system.


STEP-3 INSIDE THE WEB CONFIGURED FOLDER MAKE ONE FILE:-
make a file name called index.html

STEP4 -> INSTALLING DOCKER CONTAINER WITH PAT:-
For starting the webserver install httpd by using the command yum install httpd -y

STEP 5 — > INSTALLING HTTPD PACKAGE INSIDE DOCKER CONTAINER
For starting the webserver install httpd by using the command yum install httpd -y

STEP 6 STARTING HTTPD SERVICE INSIDE DOCKER CONTAINER:-

STEP 7 APACHE WEBSERVER HAS BEEN LAUNCHED:-
Now you can check whether your service is running or not by using command curl in your root localhost if connection is established you can see your index.html file

YOUR WEBSERVER HAS BEEN SUCCESSFULLY CONFIGURED YOU CAN ALSO SEE THE SAME USING GUI SCREEN

THANKYOU :)
KEEP SHARING THIS BLOG
TEAM MEMBERS:)
- RAJIT PAUL
- SAWAN CHOUHAN
- ARPIT BISANE
- SABARI
- SHRISTI SHARMA