ARTH TASK 7.2

 7.2: Docker Task

2)Setting up Python Interpreter and running Python Code on Docker Container

Step1

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

STEP1:©
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:

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:

Comments

Popular posts from this blog

ARTH TASK 23 [📌 Automate Kubernetes Cluster Using Ansible 🔅 Launch ec2-instances on AWS Cloud eg. for master and slave. 🔅 Create roles that will configure master node and slave node seperately. 🔅 Launch a wordpress and mysql database connected to it in the respectine slaves. 🔅 Expose the wordpress pod and client able hit the wordpress ip with its respective port. ]

Arth Task6 "Create High Availability Architecture with AWS CLI" #awscloud #awscli #aws #vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeudcation #awsbylw #arthbylw

RH294 real used cases workshop #RedHat #vimaldaga #righteducation #educationredefine #rightmentor #linuxworld #makingindiafutureready #righeducation #arthbylw #ansiblebylw #ansible #expertsession #sreejith #arun #practicalimplementation #rh294