Configure Web Server and Launch Python Interpreter On The Top Of Docker Container

click here for video of this task:-

https://www.youtube.com/watch?v=uFuXRe0zWQs

WHAT IS DOCKER :-

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.

WHAT IS DOCKER CONTAINER:-

Docker is a tool by which we manage the container , container is like a operating system you can launch these container with in a second ,docker work on the top of these container’s.

WHAT IS WEB SERVER :-

A web server is server software, or hardware dedicated to running this software, that can satisfy client requests on the World Wide Web. A web server can, in general, contain one or more websites. A web server processes incoming network requests over HTTP and several other related protocols.

PREREQUISITE:-

For performing this task you have a red hat operating system in your system.

STEP 1:-

INSTALL AND START DOCKER :-

yum install docker

command for start docker:-

systemctl start docker

STEP 2:-

PULL DOCKER CONTAINER IMAGES :-

command for pull image:-

docker pull image name

STEP 3:-

LAUNCH CONTAINER WITH PATTING OF PORT NUMBER:-

Command for launch container and patting port no:-

STEP 4:-

LAUNCH APACHE2 WEBSERVER INSIDE UBUNTU O.S:-

apt-get install apache2

now i start this webserver with the help of below command:-

service apache2 start

after start the webserver i create one p.html file inside the folder of /var/www/html you can see source code of this html file.

STEP 5:-

INSTALL PYTHON INSIDE UBUNTU O.S:-

apt-get install python

For checking this, that python has been successfully installed or not we run one command for this:-

python — — version

OUTPUT:-

Public ip/html file name

Thanks for reading…………………………………….

A Tech Guy , Like to Play With Technologies And Try To Make A Better Integration Of Technologies So that Automation Come in IT Industry.