7.2: Docker Task

Rishabh
Oct 29, 2020

--

🔅Configuring HTTPD Server on Docker Container

🔅Setting up Python Interpreter and running Python Code on Docker Container

Hello guys I hope you guys doing fine…..

Configuring HTTPD Server on Docker Container

we are here to look upon the topic of how to setup apache2 and python on Docker:

Step1

RUN THE DOCKER USING RUN COMMAND:
docker run -it — name myos2 ubuntu:20.10

STEP1:(b)
YOU CAN ALSO USE PRE INSTALLED CONTAINER USING:
docker start myos2
docker attach myos2

STEP1:(c)
TO CHECK RUNNING DOCKER CONTAINER:
docker ps

TO CHECK ALL THE INSTALLED DOCKER CONTAINER:
docker ps -a

STEP 2:
PROGRAMS WE NEED TO INSTALL TO SETUP APACHE2 AND PYHTON:

apt-get update
apt-get install apache2
apt-get install systemctl
apt-get install net-tools
apt-get install python3
apt-get install vim

CONFIGURING HTTPD SERVER ON DOCKER CONTAINER:

INSTALLING APACHE2
apt-get install apache2

INSTALLING VIM
apt-get install vim

STARTING THE APACHE2 SERVICE:
systemctl start apache2
systemctl status apache2

CONFIGURING APACHE2
#cd /var/www/html
#vim rb.html

HERE’S THE OUTPUT OF MY WEBSERVER
Named :: rb.html

SETTING UP PYTHON INTERPRETER AND RUNNING PYTHON CODE ON DOCKER CONTAINER.

INSTALLING PYTHON3 ON DOCKER:

apt-get install python3

Thank you vimal sir
for all the efforts.
#ARTH LEARNERS

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Rishabh
Rishabh

Written by Rishabh

Student from B.tech 2nd Year, A proud ARTH learner, love new technologies, Curious about many thing, likes to explore places, love eating pizza and much more.

No responses yet

Write a response