
Configuring HTTPD Server , Setting up Python Interpreter and running Python Code on Docker Container
PREREQUISITES:
Install Docker
Command to Run docker
docker run -it --name <name of container> <image name:version>
Ex:- docker run -it --name myos1 centosNote:-> Providing the name is not necessary.
Lets configure the apache webserver
- First install httpd :- yum install httpd -y

2. To to directory(folder) -: cd /var/www/html and create file [ Configuring the webserver]

3. Start the services of httpd but the problem we will face is due to the systemctl command is not working we to start the service we’ll use different command.

So i just need to find the directory where the httpd program is there we can directly run from there.


WEB-SERVER CONFIGURED
Now to run the program we need ip address for that we need to install package name called net-tools this us ifconfig from there we’ll see the ip address.

Now lets run the program

Setting up Python Interpreter and running Python Code on Docker Container
Download and install the Python Interpreter
yum install python3 -y

Let’s run python program inside docker
