SlideShare a Scribd company logo
WEBAPP USING DOCKER
CONTAINER
Id no: 16CP024
16CP031
WHAT IS DOCKER?
 Docker is a set of platform as a service products that uses OS-level
virtualization to deliver software in packages called containers.
 Precisely, it is open platform for developing, shipping, and running
applications.
 Assembling above definitions, Docker is an operating system container
management tool that allows you to easily manage and deploy
applications by making it easy to package them within operating system
containers.
TO UNDERSTAND DOCKER, THUS WE
MUST FIRST UNDERSTAND CONTAINER
 Containerization is the process of packaging an application along with
its required libraries, frameworks, and configuration files together so
that it can be run in various computing environments efficiently.
 In simpler terms, containerization is the encapsulation of an
application and its required environment.
 As containers and virtual machines are many a times used
interchangeably, to know the difference between them becomes
important.
Webapp using docker container
Webapp using docker container
WORKING WITH DOCKER
To start with docker, firstly, you need to install docker in your system
through any of the three ways prescribed in the below link.
https://docs.docker.com/engine/install/
TO RUN NGINX IN A DOCKER CONTAINER
ON UBUNTU
 Nginx is an open source reverse proxy server for HTTP, HTTPS, SMTP,
POP3, and IMAP protocols, as well as a load balancer, HTTP cache,
and a web server (origin server).
 So, let’s try to run our first webpage using nginx.
1. To get the nginx image in the system, run the below command.
$sudo docker pull nginx
2. To start this container,
$sudo docker run --name docker-nginx -p 80:80 -d nginx
where –d is used to run the image in background.
Note: As we are working with the ubuntu platform “sudo” must be used before every
command otherwise with Windows or mac no need of using ”sudo”.
Webapp using docker container
3. Paste the IP address of your Ubuntu system into a web browser and
you should see Nginx’s “Welcome to nginx!” page.
4. Thus, to check the status of the container, you can run:
$sudo docker ps
5. Then to stop the running container run:
$sudo docker stop [name-of-the-container-running]
To remove the container :
$sudo docker rm [name-of-the-container-to-be-removed]
TO CREATE YOUR OWN WEBPAGE IN
NGINX:
1. Create a new directory within your home directory and hence create
a “index.html” file within it (this is the webpage you want to create).
$mkdir -p ~/docker-nginx/html
$cd ~/docker-nginx/html
$vim index.html
2. Now, to start the container run the below command:
$sudo docker run --name docker-nginx -p 80:80 –d –v ~/docker-
nginx/html:/usr/share/nginx/html nginx
this command tells the system to look for the webpage in the
prescribed location rather than the default one.
Webapp using docker container
TO RUN YOUR WEBAPP UPLOADED ON
GITHUB USING DOCKER
 Link your docker with the repository on your github through docker hub.
 Then login to your docker account by: $sudo docker login
 Open and run your repository using : $ sudo docker push USERNAME/appname
 Hence, with the ip-address see your webapp running..
REFERENCES:
 Webapps with docker
https://docker-curriculum.com/#webapps-with-docker
 Run nginx in docker
https://vexxhost.com/resources/tutorials/how-to-run-nginx-in-a-docker-
container-on-ubuntu-16-04/
 Github and docker
https://github.com/docker/labs/blob/master/beginner/chapters/webapps.md

More Related Content

PPTX
How to manage Microsoft Azure with open source
PDF
Hybrid (Windows + Linux) Apps with Docker Swarm
PDF
Docker hands-on
PDF
2015 DockerCon Using Docker in production at bity.com
PDF
17 Linux Basics #burningkeyboards
DOCX
Docker Compose user guide
PPTX
How to deploy docker container inside ikoula's cloud
PPTX
Introduction to Docker
How to manage Microsoft Azure with open source
Hybrid (Windows + Linux) Apps with Docker Swarm
Docker hands-on
2015 DockerCon Using Docker in production at bity.com
17 Linux Basics #burningkeyboards
Docker Compose user guide
How to deploy docker container inside ikoula's cloud
Introduction to Docker

What's hot (19)

PPT
Linux Backup System using rsync, tar, gzip
DOCX
Clustering manual
PPTX
Dockerizing pharo
PDF
Docker presentation | Paris Docker Meetup
PDF
DSpace Installation
PPTX
Docker build #1
PDF
5 min docker
ODP
Installing Drupal 7 in Debian Environment
PDF
Install Archlinux in 10 Steps (Sort of) :)
PPTX
Docker
PPT
Linuxppt
PDF
Nelf2012
PDF
Network File System (NFS)
PDF
Declare your infrastructure: InfraKit, LinuxKit and Moby
PDF
Introduction to mercurial
PPTX
Linux basics
PDF
Docker and plone
PDF
DevOps Series: Extending vagrant with Puppet for configuration management
DOCX
Linux server backup solution
Linux Backup System using rsync, tar, gzip
Clustering manual
Dockerizing pharo
Docker presentation | Paris Docker Meetup
DSpace Installation
Docker build #1
5 min docker
Installing Drupal 7 in Debian Environment
Install Archlinux in 10 Steps (Sort of) :)
Docker
Linuxppt
Nelf2012
Network File System (NFS)
Declare your infrastructure: InfraKit, LinuxKit and Moby
Introduction to mercurial
Linux basics
Docker and plone
DevOps Series: Extending vagrant with Puppet for configuration management
Linux server backup solution
Ad

Similar to Webapp using docker container (20)

PPTX
How To Run Nginx in a Docker Container on Ubuntu 16.04
PDF
Docker From Scratch
PPT
Docker 101, Alexander Ryabtsev
PPTX
Getting Started with Docker
PDF
How Reconnix Is Using Docker
PPTX
Mini-Training: Docker
PDF
Docker command
PPTX
Docker in production
PDF
Docker, the Future of DevOps
PDF
Deliver Python Apps with Docker
PPTX
Start your adventure with docker
PPTX
Docker Introductory workshop
PDF
Containerizing Web Application with Docker
PDF
Docker fundamentals
PDF
Docker Containers - everything about docker Containers
PDF
JDD2014: Docker.io - versioned linux containers for JVM devops - Dominik Dorn
PDF
Docker up and Running For Web Developers
PDF
Docker Up and Running for Web Developers
PDF
Up and running with docker
PPTX
Dockerizing a Symfony2 application
How To Run Nginx in a Docker Container on Ubuntu 16.04
Docker From Scratch
Docker 101, Alexander Ryabtsev
Getting Started with Docker
How Reconnix Is Using Docker
Mini-Training: Docker
Docker command
Docker in production
Docker, the Future of DevOps
Deliver Python Apps with Docker
Start your adventure with docker
Docker Introductory workshop
Containerizing Web Application with Docker
Docker fundamentals
Docker Containers - everything about docker Containers
JDD2014: Docker.io - versioned linux containers for JVM devops - Dominik Dorn
Docker up and Running For Web Developers
Docker Up and Running for Web Developers
Up and running with docker
Dockerizing a Symfony2 application
Ad

Recently uploaded (20)

PPTX
Job_Card_System_Styled_lorem_ipsum_.pptx
PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
Internet___Basics___Styled_ presentation
PDF
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PPTX
Introduction to Information and Communication Technology
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Funds Management Learning Material for Beg
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Testing WebRTC applications at scale.pdf
PPT
tcp ip networks nd ip layering assotred slides
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PPTX
Slides PPTX World Game (s) Eco Economic Epochs.pptx
Job_Card_System_Styled_lorem_ipsum_.pptx
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Paper PDF World Game (s) Great Redesign.pdf
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
Internet___Basics___Styled_ presentation
FINAL CALL-6th International Conference on Networks & IOT (NeTIOT 2025)
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Introduction to Information and Communication Technology
INTERNET------BASICS-------UPDATED PPT PRESENTATION
international classification of diseases ICD-10 review PPT.pptx
Funds Management Learning Material for Beg
SAP Ariba Sourcing PPT for learning material
Testing WebRTC applications at scale.pdf
tcp ip networks nd ip layering assotred slides
Decoding a Decade: 10 Years of Applied CTI Discipline
The New Creative Director: How AI Tools for Social Media Content Creation Are...
Cloud-Scale Log Monitoring _ Datadog.pdf
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
Tenda Login Guide: Access Your Router in 5 Easy Steps
Slides PPTX World Game (s) Eco Economic Epochs.pptx

Webapp using docker container

  • 1. WEBAPP USING DOCKER CONTAINER Id no: 16CP024 16CP031
  • 2. WHAT IS DOCKER?  Docker is a set of platform as a service products that uses OS-level virtualization to deliver software in packages called containers.  Precisely, it is open platform for developing, shipping, and running applications.  Assembling above definitions, Docker is an operating system container management tool that allows you to easily manage and deploy applications by making it easy to package them within operating system containers.
  • 3. TO UNDERSTAND DOCKER, THUS WE MUST FIRST UNDERSTAND CONTAINER  Containerization is the process of packaging an application along with its required libraries, frameworks, and configuration files together so that it can be run in various computing environments efficiently.  In simpler terms, containerization is the encapsulation of an application and its required environment.
  • 4.  As containers and virtual machines are many a times used interchangeably, to know the difference between them becomes important.
  • 7. WORKING WITH DOCKER To start with docker, firstly, you need to install docker in your system through any of the three ways prescribed in the below link. https://docs.docker.com/engine/install/
  • 8. TO RUN NGINX IN A DOCKER CONTAINER ON UBUNTU  Nginx is an open source reverse proxy server for HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server).  So, let’s try to run our first webpage using nginx. 1. To get the nginx image in the system, run the below command. $sudo docker pull nginx 2. To start this container, $sudo docker run --name docker-nginx -p 80:80 -d nginx where –d is used to run the image in background. Note: As we are working with the ubuntu platform “sudo” must be used before every command otherwise with Windows or mac no need of using ”sudo”.
  • 10. 3. Paste the IP address of your Ubuntu system into a web browser and you should see Nginx’s “Welcome to nginx!” page.
  • 11. 4. Thus, to check the status of the container, you can run: $sudo docker ps 5. Then to stop the running container run: $sudo docker stop [name-of-the-container-running] To remove the container : $sudo docker rm [name-of-the-container-to-be-removed]
  • 12. TO CREATE YOUR OWN WEBPAGE IN NGINX: 1. Create a new directory within your home directory and hence create a “index.html” file within it (this is the webpage you want to create). $mkdir -p ~/docker-nginx/html $cd ~/docker-nginx/html $vim index.html 2. Now, to start the container run the below command: $sudo docker run --name docker-nginx -p 80:80 –d –v ~/docker- nginx/html:/usr/share/nginx/html nginx this command tells the system to look for the webpage in the prescribed location rather than the default one.
  • 14. TO RUN YOUR WEBAPP UPLOADED ON GITHUB USING DOCKER  Link your docker with the repository on your github through docker hub.  Then login to your docker account by: $sudo docker login  Open and run your repository using : $ sudo docker push USERNAME/appname  Hence, with the ip-address see your webapp running..
  • 15. REFERENCES:  Webapps with docker https://docker-curriculum.com/#webapps-with-docker  Run nginx in docker https://vexxhost.com/resources/tutorials/how-to-run-nginx-in-a-docker- container-on-ubuntu-16-04/  Github and docker https://github.com/docker/labs/blob/master/beginner/chapters/webapps.md