SlideShare a Scribd company logo
1 of 11
INTRODUCTION TO DOCKER
Ranjan Baisak (RB)
rbaisak@juniper.net
CLOUD MARKET
Developer
s
Public
Develops
Architects
IT Pros
HybridPrivate
WHAT IS DOCKER
 An Open-Source (Go) framework to manage “container virtualization”
 Docker isolates multiple user spaces (file systems) inside the same
host
 The user space instances are called “Containers”
 They give you the illusion of being inside a VM
 Think about “execution environments” or “sandboxes”
 No need for an hypervisor (and so very quick to launch)
 Requires x64 Linux and kernel 3.8+
WHAT IS DOCKER
 An Open-Source (Go) framework to manage “container virtualization”
 Docker isolates multiple user spaces (file systems) inside the same host
 The user space instances are called “Containers”
 They give you the illusion of being inside a VM
 Think about “execution environments” or “sandboxes”
 No need for an hypervisor (and so very quick to launch)
 Requires x64 Linux and kernel 3.8+
VIRTUAL MACHINE VS DOCKER
Virtual Machines
Each virtual machine includes the application, the necessary
binaries and libraries and an entire guest operating system - all
of which may be tens of GBs in size.
Containers
Containers include the application and all of its dependencies, but share the
kernel with other containers. They run as an isolated process in userspace on
the host operating system. They’re also not tied to any specific infrastructure –
Docker containers run on any computer, on any infrastructure and in any
cloud.
DOCKER IS NOT
 A programming language
 An OS
 A Virtual Machine
 An image in the traditional hypervisor-based Virtual Machine concept
GLOSSARY
 Docker, aka Docker Engine: the daemon managing docker images and containers (using
namespaces and cgroups). It runs on the (Linux-based) Host.
 Docker client: the binary interacting with the Docker Engine.
 Docker Image: a filesystem (read-only template) used to create a Container (think “the binary”)
 Docker Container: a running image providing a service (think “the process”)
 Host: the computer running the Docker Engine
 Docker Registry: a private or public (Docker Hub) collection of Docker Images
 Docker Machine: provision hosts and install Docker on them
 Docker Compose: create and manage multi-container architectures
 Docker Swarm: orchestrating tool to provision and schedule containers
ARCHITECTURE
Docker uses a client-server architecture. The Docker client talks to the
Docker-daemon, which does the heavy lifting of building, running, and
distributing your Docker containers.
The Docker client and daemon communicate via sockets or through a
RESTful API.
ARCHITECTURE…
 The Docker daemon
• the Docker daemon runs on a host machine. The user does not directly interact with the daemon, but instead
through the Docker client.
 The Docker client
• The Docker client, in the form of the docker binary, is the primary user interface to Docker. It accepts commands
from the user and communicates back and forth with a Docker daemon.
 Docker Internals
• Docker images
• Docker registries
• Docker containers
 How it works?
• You can build Docker images that hold your applications.
• You can create Docker containers from those Docker images to run your applications.
• You can share those Docker images via Docker Hub or your own registry.
DOCKER AND THE KERNEL
 Containers interact with the kernel through system calls
 There are no parts of the kernel or kernel modules inside a container
 A container cannot use a different kernel (version) than the host
 The same kernel is shared by all the containers
DOCKER NETWORKING
 Docs https://docs.docker.com/engine/userguide/networking/dockernetworks/
 Create a Swarm cluster with networking https://github.com/chanezon/docker-
tips/orchestration-networking
 Networking in compose
https://github.com/docker/compose/blob/master/docs/networking.md
 Nathan Leclaire Seamless Docker Multihost Overlay Networking on
DigitalOcean With Machine, Swarm, and Compose, RethinkDB
http://nathanleclaire.com/blog/2015/11/17/seamless-docker-multihost-
overlay-networking-on-digitalocean-with-machine-swarm-and-compose-ft.-
rethinkdb/

More Related Content

What's hot

Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Simplilearn
 
Docker on Google App Engine
Docker on Google App EngineDocker on Google App Engine
Docker on Google App Engine
Docker, Inc.
 

What's hot (20)

Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
 
Docker Container-Introduction and Features
Docker Container-Introduction and FeaturesDocker Container-Introduction and Features
Docker Container-Introduction and Features
 
Docker for developers
Docker for developersDocker for developers
Docker for developers
 
Docker 101 Checonf 2016
Docker 101 Checonf 2016Docker 101 Checonf 2016
Docker 101 Checonf 2016
 
Introduction To Docker
Introduction To  DockerIntroduction To  Docker
Introduction To Docker
 
docker installation and basics
docker installation and basicsdocker installation and basics
docker installation and basics
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Introduction to container based virtualization with docker
Introduction to container based virtualization with dockerIntroduction to container based virtualization with docker
Introduction to container based virtualization with docker
 
Docker in real life
Docker in real lifeDocker in real life
Docker in real life
 
Virtual Container - Docker
Virtual Container - Docker Virtual Container - Docker
Virtual Container - Docker
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
Docker Presentation at the OpenStack Austin Meetup | 2013-09-12
 
Docker intro
Docker introDocker intro
Docker intro
 
Docker on Google App Engine
Docker on Google App EngineDocker on Google App Engine
Docker on Google App Engine
 
Building Reusable Development Environments with Docker
Building Reusable Development Environments with DockerBuilding Reusable Development Environments with Docker
Building Reusable Development Environments with Docker
 
Docker and the Container Ecosystem
Docker and the Container EcosystemDocker and the Container Ecosystem
Docker and the Container Ecosystem
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Virtualization, Containers, Docker and scalable container management services
Virtualization, Containers, Docker and scalable container management servicesVirtualization, Containers, Docker and scalable container management services
Virtualization, Containers, Docker and scalable container management services
 
Docker at Djangocon 2013 | Talk by Ken Cochrane
Docker at Djangocon 2013 | Talk by Ken CochraneDocker at Djangocon 2013 | Talk by Ken Cochrane
Docker at Djangocon 2013 | Talk by Ken Cochrane
 

Similar to Docker : Container Virtualization

CONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptxCONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptx
SanjuGamesphere
 

Similar to Docker : Container Virtualization (20)

containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )containers and virtualization tools ( Docker )
containers and virtualization tools ( Docker )
 
Docker
DockerDocker
Docker
 
Docker interview Questions-2.pdf
Docker interview Questions-2.pdfDocker interview Questions-2.pdf
Docker interview Questions-2.pdf
 
Docker slides
Docker slidesDocker slides
Docker slides
 
Introduction to Dockers and containers
Introduction to Dockers and containers Introduction to Dockers and containers
Introduction to Dockers and containers
 
Docker.pptx
Docker.pptxDocker.pptx
Docker.pptx
 
CONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptxCONTAINERIZATION WITH DOCKER .pptx
CONTAINERIZATION WITH DOCKER .pptx
 
Docker
DockerDocker
Docker
 
Let's dockerize
Let's dockerizeLet's dockerize
Let's dockerize
 
Learning Dockers - Step by Step
Learning Dockers - Step by StepLearning Dockers - Step by Step
Learning Dockers - Step by Step
 
Containerization and Docker
Containerization and DockerContainerization and Docker
Containerization and Docker
 
Introduction to Dockers.pptx
Introduction to Dockers.pptxIntroduction to Dockers.pptx
Introduction to Dockers.pptx
 
Docker
DockerDocker
Docker
 
Docker
DockerDocker
Docker
 
An introduction to contianers and Docker for PHP developers
An introduction to contianers and Docker for PHP developersAn introduction to contianers and Docker for PHP developers
An introduction to contianers and Docker for PHP developers
 
Hack the whale
Hack the whaleHack the whale
Hack the whale
 
Docker presentation
Docker presentationDocker presentation
Docker presentation
 
Introduction to Containers and Docker for PHP developers
Introduction to Containers and Docker for PHP developersIntroduction to Containers and Docker for PHP developers
Introduction to Containers and Docker for PHP developers
 
Introduction to Containers and Docker for PHP developers
Introduction to Containers and Docker for PHP developersIntroduction to Containers and Docker for PHP developers
Introduction to Containers and Docker for PHP developers
 
Cohesion Techsessie Docker - Daniel Palstra
Cohesion Techsessie Docker - Daniel PalstraCohesion Techsessie Docker - Daniel Palstra
Cohesion Techsessie Docker - Daniel Palstra
 

Recently uploaded

Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 

Recently uploaded (20)

WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
WSO2CON 2024 - Building the API First Enterprise – Running an API Program, fr...
 
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital TransformationWSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
WSO2Con2024 - WSO2's IAM Vision: Identity-Led Digital Transformation
 
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni%in Benoni+277-882-255-28 abortion pills for sale in Benoni
%in Benoni+277-882-255-28 abortion pills for sale in Benoni
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
WSO2CON 2024 - API Management Usage at La Poste and Its Impact on Business an...
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
WSO2CON 2024 - Navigating API Complexity: REST, GraphQL, gRPC, Websocket, Web...
 

Docker : Container Virtualization

  • 1. INTRODUCTION TO DOCKER Ranjan Baisak (RB) rbaisak@juniper.net
  • 3. WHAT IS DOCKER  An Open-Source (Go) framework to manage “container virtualization”  Docker isolates multiple user spaces (file systems) inside the same host  The user space instances are called “Containers”  They give you the illusion of being inside a VM  Think about “execution environments” or “sandboxes”  No need for an hypervisor (and so very quick to launch)  Requires x64 Linux and kernel 3.8+
  • 4. WHAT IS DOCKER  An Open-Source (Go) framework to manage “container virtualization”  Docker isolates multiple user spaces (file systems) inside the same host  The user space instances are called “Containers”  They give you the illusion of being inside a VM  Think about “execution environments” or “sandboxes”  No need for an hypervisor (and so very quick to launch)  Requires x64 Linux and kernel 3.8+
  • 5. VIRTUAL MACHINE VS DOCKER Virtual Machines Each virtual machine includes the application, the necessary binaries and libraries and an entire guest operating system - all of which may be tens of GBs in size. Containers Containers include the application and all of its dependencies, but share the kernel with other containers. They run as an isolated process in userspace on the host operating system. They’re also not tied to any specific infrastructure – Docker containers run on any computer, on any infrastructure and in any cloud.
  • 6. DOCKER IS NOT  A programming language  An OS  A Virtual Machine  An image in the traditional hypervisor-based Virtual Machine concept
  • 7. GLOSSARY  Docker, aka Docker Engine: the daemon managing docker images and containers (using namespaces and cgroups). It runs on the (Linux-based) Host.  Docker client: the binary interacting with the Docker Engine.  Docker Image: a filesystem (read-only template) used to create a Container (think “the binary”)  Docker Container: a running image providing a service (think “the process”)  Host: the computer running the Docker Engine  Docker Registry: a private or public (Docker Hub) collection of Docker Images  Docker Machine: provision hosts and install Docker on them  Docker Compose: create and manage multi-container architectures  Docker Swarm: orchestrating tool to provision and schedule containers
  • 8. ARCHITECTURE Docker uses a client-server architecture. The Docker client talks to the Docker-daemon, which does the heavy lifting of building, running, and distributing your Docker containers. The Docker client and daemon communicate via sockets or through a RESTful API.
  • 9. ARCHITECTURE…  The Docker daemon • the Docker daemon runs on a host machine. The user does not directly interact with the daemon, but instead through the Docker client.  The Docker client • The Docker client, in the form of the docker binary, is the primary user interface to Docker. It accepts commands from the user and communicates back and forth with a Docker daemon.  Docker Internals • Docker images • Docker registries • Docker containers  How it works? • You can build Docker images that hold your applications. • You can create Docker containers from those Docker images to run your applications. • You can share those Docker images via Docker Hub or your own registry.
  • 10. DOCKER AND THE KERNEL  Containers interact with the kernel through system calls  There are no parts of the kernel or kernel modules inside a container  A container cannot use a different kernel (version) than the host  The same kernel is shared by all the containers
  • 11. DOCKER NETWORKING  Docs https://docs.docker.com/engine/userguide/networking/dockernetworks/  Create a Swarm cluster with networking https://github.com/chanezon/docker- tips/orchestration-networking  Networking in compose https://github.com/docker/compose/blob/master/docs/networking.md  Nathan Leclaire Seamless Docker Multihost Overlay Networking on DigitalOcean With Machine, Swarm, and Compose, RethinkDB http://nathanleclaire.com/blog/2015/11/17/seamless-docker-multihost- overlay-networking-on-digitalocean-with-machine-swarm-and-compose-ft.- rethinkdb/