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:)

  1. RAJIT PAUL
  2. SAWAN CHOUHAN
  3. ARPIT BISANE
  4. SABARI
  5. SHRISTI SHARMA

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

shristi sharma
shristi sharma

Written by shristi sharma

Aspiring Devops Enthusiastic |Content Creator |Python | Machine Learning | Cloud Computing

No responses yet

Write a response