Configuring Apache HTTP Server and Setting up python interpretor in docker container

Configuring Apache HTTP Server in a docker container:

🔰 Step 1 🔰

Install docker in your system and start docker services

🔰 Step 2 🔰

Pull an image from dockerhub using the command

Here, I am using the latest version of centos image

🔰 Step 3 🔰

Launch the container and enable the terminal to be interactive

🔰 Step 4 🔰

Install the httpd package

🔰 Step 5 🔰

We put all the webpages in /var/www/html folder

🔰Step 6 🔰

Start the http services

To start http services, we will use the command : systemctl start httpd

But, systemctl is not installed in my docker container

🔰 Step 7:🔰

Now you can see your webpages from the browser

Setting up python interpretor in a docker container:

🔰 Step 1:🔰

Pull an image from dockerhub using the command

Here, I am using the latest version of centos image

🔰 Step 2:🔰

Launch the container and enable the terminal to be interactive

🔰 Step 3:🔰

Install python3

You can check if python3 is installed or not using the command: