DevOps Certification Training www.edureka.co/devops
Topics For Today’s Session
Problems Before Docker
Virtualization vs
Containerization
What is Docker?
How does Docker Work?
Hands-On
Docker Compose &
Docker Swarm
Docker Architecture
Docker Components
DevOps Certification Training www.edureka.co/devops
Problems Before Docker
Code works
fine in my
laptop
There is some
problem with
the code
Dev Prod
DevOps Certification Training www.edureka.co/devops
Scenario Using Virtual Machines
DevOps Certification Training www.edureka.co/devops
Scenario After Using Docker
DevOps Certification Training www.edureka.co/devops
Virtualisation Vs Containerization
DevOps Certification Training www.edureka.co/devops
What is Docker?
DevOps Certification Training www.edureka.co/devops
What is Docker?
•Docker is a tool designed to make it easier to create, deploy, and run
applications by using containers.
•Docker containers are lightweight alternatives to Virtual Machines, and it
uses the host OS.
•You don’t have to pre-allocate any RAM in containers.
DevOps Certification Training www.edureka.co/devops
What is Docker?
DevOps Certification Training www.edureka.co/devops
What is Docker?
DevOps Certification Training www.edureka.co/devops
Docker Engine is simply the
docker application that is
installed on your host
machine.
How Does Docker Work?
Docker Engine
Docker CLI
Client
REST API Docker Daemon
Server
The Client- Server
architecture communicates
using a REST API.
Docker Daemon checks the
requests to manage the
containers.
Docker Engine uses a Client Server Architecture.
DevOps Certification Training www.edureka.co/devops
Components of Docker
Dockerfile DockerImage Docker Container Docker Registry
DevOps Certification Training www.edureka.co/devops
Docker File, Images & Container
Docker File Docker Image Docker Container
Build Run
Isolated Application Platform
Contains Everything Needed To
Run The Application
Built From One Or More Images
Read Only Template Used To
Create Containers
Built By Docker Users
Stored In Docker Hub Or Your
Local Registry
A text document which contains
all the commands that a user
can call on the command line to
assemble an image.
DevOps Certification Training www.edureka.co/devops
Docker Registry
▪Control where your images are being stored
▪Integrate image storage with your in-house development workflow
▪Docker Registry is a storage component for Docker Images
▪We can store the Images in either Public / Private repositories
▪Docker Hub is Docker’s very own cloud repository
Why Use Docker Registries?
DevOps Certification Training www.edureka.co/devops
Docker Architecture
DevOps Certification Training www.edureka.co/devops
Docker Swarm
Docker Swarm provides native clustering capabilities to turn a group of Docker engines
into a single, virtual Docker Engine. With these pooled resources, you can scale out your
application as if it were running on a single, huge computer.
DevOps Certification Training www.edureka.co/devops
Docker Compose
Docker Compose makes it easier to configure and run applications made up of multiple
containers. For the example: imagine being able to define three containers—one
running a web app, another running postgres, and a third running redis—all in one
YAML file and then running those three connected containers with a single command.
You can run these three
containers with a single
command
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Hands-On
Writing a Dockerfile and creating a
container
Copyright © 2018, edureka and/or its affiliates. All rights reserved.
Hands-On
To get a Node.js application into Docker
Container using Docker Swarm
Docker Explained | What Is A Docker Container? | Docker Simplified | Docker Tutorial | Edureka

Docker Explained | What Is A Docker Container? | Docker Simplified | Docker Tutorial | Edureka

  • 2.
    DevOps Certification Trainingwww.edureka.co/devops Topics For Today’s Session Problems Before Docker Virtualization vs Containerization What is Docker? How does Docker Work? Hands-On Docker Compose & Docker Swarm Docker Architecture Docker Components
  • 3.
    DevOps Certification Trainingwww.edureka.co/devops Problems Before Docker Code works fine in my laptop There is some problem with the code Dev Prod
  • 4.
    DevOps Certification Trainingwww.edureka.co/devops Scenario Using Virtual Machines
  • 5.
    DevOps Certification Trainingwww.edureka.co/devops Scenario After Using Docker
  • 6.
    DevOps Certification Trainingwww.edureka.co/devops Virtualisation Vs Containerization
  • 7.
    DevOps Certification Trainingwww.edureka.co/devops What is Docker?
  • 8.
    DevOps Certification Trainingwww.edureka.co/devops What is Docker? •Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. •Docker containers are lightweight alternatives to Virtual Machines, and it uses the host OS. •You don’t have to pre-allocate any RAM in containers.
  • 9.
    DevOps Certification Trainingwww.edureka.co/devops What is Docker?
  • 10.
    DevOps Certification Trainingwww.edureka.co/devops What is Docker?
  • 11.
    DevOps Certification Trainingwww.edureka.co/devops Docker Engine is simply the docker application that is installed on your host machine. How Does Docker Work? Docker Engine Docker CLI Client REST API Docker Daemon Server The Client- Server architecture communicates using a REST API. Docker Daemon checks the requests to manage the containers. Docker Engine uses a Client Server Architecture.
  • 12.
    DevOps Certification Trainingwww.edureka.co/devops Components of Docker Dockerfile DockerImage Docker Container Docker Registry
  • 13.
    DevOps Certification Trainingwww.edureka.co/devops Docker File, Images & Container Docker File Docker Image Docker Container Build Run Isolated Application Platform Contains Everything Needed To Run The Application Built From One Or More Images Read Only Template Used To Create Containers Built By Docker Users Stored In Docker Hub Or Your Local Registry A text document which contains all the commands that a user can call on the command line to assemble an image.
  • 14.
    DevOps Certification Trainingwww.edureka.co/devops Docker Registry ▪Control where your images are being stored ▪Integrate image storage with your in-house development workflow ▪Docker Registry is a storage component for Docker Images ▪We can store the Images in either Public / Private repositories ▪Docker Hub is Docker’s very own cloud repository Why Use Docker Registries?
  • 15.
    DevOps Certification Trainingwww.edureka.co/devops Docker Architecture
  • 16.
    DevOps Certification Trainingwww.edureka.co/devops Docker Swarm Docker Swarm provides native clustering capabilities to turn a group of Docker engines into a single, virtual Docker Engine. With these pooled resources, you can scale out your application as if it were running on a single, huge computer.
  • 17.
    DevOps Certification Trainingwww.edureka.co/devops Docker Compose Docker Compose makes it easier to configure and run applications made up of multiple containers. For the example: imagine being able to define three containers—one running a web app, another running postgres, and a third running redis—all in one YAML file and then running those three connected containers with a single command. You can run these three containers with a single command
  • 18.
    Copyright © 2018,edureka and/or its affiliates. All rights reserved. Hands-On Writing a Dockerfile and creating a container
  • 19.
    Copyright © 2018,edureka and/or its affiliates. All rights reserved. Hands-On To get a Node.js application into Docker Container using Docker Swarm