Configuring HTTPD Inside Docker Container.

Nityachawda
Mar 15, 2021

First we will check that docker is installed or not .

Then we will launch a container named web1 using centos image.

Using docker ps -a command we can see that our container is launched.

Inside docker container we cannot run ifconfig command . so, we will first install it

Now we can run ifconfig command.

Now we will check if httpd is installed.

we will install httpd.

Let’s check if httpd is installed.

We will go inside /var/www/html folder and create a file inside it.

Let’s start httpd service.

Now we will check if it is visible or not.

Thank You !!

--

--