Configuring HTTPD Server on Docker Container
To configure Httpd Server on Docker Container we need to follow following steps:
✍️Step 1 : launch new container in Docker using image (Centos:8)
docker run -it centos
Check the container is launch we use command “docker ps” ( show all the OS(container) running)
docker ps
✍️Step-2: Now install Httpd software using yum command
yum install httpd
Start Httpd Service
usr/sbin/httpd
✍️Step-3: Now create a folder in /etc/var/html for creating a web page and create html file inside that folder
cd /var/www/html vi arp.html
Now install the software containing infconfig command
yum install net-tools
✍️Step-4: we can see our IP using ifconfig command
✍️Step-5: Finally we can see our web page running
curl <IP>/arp.html
👍