Launching the Webserver and the Python Interpreter On the top of Docker Container
Task description đź“„-
🌀 7.2: Docker Task
đź”…Configuring HTTPD Server on Docker Container
đź”…Setting up Python Interpreter and running Python Code on Docker Container

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.
âś… Docker provides tooling and a platform to manage the lifecycle of your containers:
- Develop your application and its supporting components using containers.
- The container becomes the unit for distributing and testing your application.
- When you’re ready, deploy your application into your production environment, as a container or an orchestrated service. This works the same whether your production environment is a local data center, a cloud provider, or a hybrid of the two.
— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —
Install it by using the command “ yum install docker “

Check the version to confirm the installation

Using the command “ systemctl start docker “ and then we have to check whether the service has been started or not by using the command “ systemctl status docker “
After installing the docker. We have to pull the image for installation of docker container.

The image has been pulled or not by using the command “docker images”

Now launch the container

Check the container is launched or not

Now install the httpd software on the top of the newly launched container

Go to the directory cd /var/www/html/. Create the HTML file Task_7.html by using the command “ vim Task_7.html “ and then read the file by using the “ cat Task_7.html “ command.

To start any service we can use the “ systemctl “ command but docker doesn’t support the “ systemctl “ command. That’s way to start the httpd service running on the top of docker container we use “/usr/sbin/httpd” command

Check the IP using ifconfig

Now run the command to see the webpage from the base OS
“ curl http://Containerip/Webpage.html “

The httpd server has been configured and its functioning.
Python
Install Python

Check whether it’s installed or not

To start python use python3 command and run a code to check


It’s working here.
Thank You for your patience.
My task is completed
#arthbylw #vimaldaga #righteducation #educationredefine #rightmentor
#worldrecordholder #ARTH #linuxworld #makingindiafutureready #righeudcation #docker #webserver #elasticity #lvm