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 !!

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

DataOps by Jan Slechta of CloverDX

Quine and the OSS creator economy

Build your Covid19-Bot with LUIS, QnAmaker & Azure Bot Service

Dev Progress Review: The Path Towards Boardwalk 2.0

Xmas Carols by Developers

Why not decorate your code?

Automating Jobs: Rails

How to survive your first Game Jam

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 💻

More from Medium

Deploying Flask Web App with docker || docker port forwarding issue in Flask Application || docker…

Installing Docker on Ubuntu 21.10

Web Server 2: NGINX installation and setup on Linux

NGINX Web Server on CentOS 8