Configuring HTTPD Server on Docker Container

Step 1: Install Docker-CE software on Redhat 8

Step 2: Install the docker-ce software on Redhat 8

yum install docker-ce — nobest -y

docker — version

Step 3: Start the status of Docker

systemctl start docker

systemctl start docker

systemctl enable docker

Step 4: Pull any Docker Image from the docker repository

docker images

docker pull centos

Step 5: Launch the docker container with centos image

docker run -it — name webos centos

docker ps

yum install net-tools -y

Step 6: Install apache httpd software

yum install httpd -y

Step 7: Put the web page inside /var/www/html directory

Step 8: Start the httpd service

Thank You !!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aditya Raj

Aditya Raj

I'm passionate learner diving into the concepts of computing 💻