SlideShare une entreprise Scribd logo
1  sur  38
Docker 101
Introduction to Docker and Containers
Ashutoshh Singh
About Me
ashutoshh@linux.com
+91-9509957594
linkedin.com/in/ashutoshh
● Chief Technology Officer, AdHoc Networks
● DevOps Consultant
● Research Areas: DevOps, Deep Learning, Neural Networks
● Talks:
○ PyCon India 2017
○ DevConf India 2018
● Open Source Contributor: Fedora, Docker and Ansible
slashdevops.blogspot.com
Agenda
● Why Containers?
● What are Containers?
○ Characteristics
○ Relationship between VMs and Containers.
● Docker
○ About Docker
○ What is Docker?
○ Components of Docker
● Docker Use Cases
Why containers?
1. Software Industry has Changed
● Before:
○ monolithic applications
○ long development cycles
○ single environment
○ slowly scaling up
● Now:
○ de-coupled services
○ fast and iterative improvements
○ multiple environments
○ quickly scaling out
2. Deployment becomes Complex
● Many different stacks:
○ Languages
○ Frameworks
○ Databases
● Many different targets:
○ Individual development environments
○ Pre-production, QA, staging
○ Production: On-premise, Cloud, Hybrid
The Deployment Problem
Parallel Problem in Shipping Industry
Solution for Shipping Industry: Intermodal Shipping Containers
Solution for Software Industry: Container System for Applications
What are containers?
● a Set of Processes sharing a common Kernel’s resources for
execution.
● Isolated from the rest of the machine.
(can’t see/affect/harm host or other containers)
● Implementation:
○ Uses namespaces to view the system’s privately
(network interfaces, PID tree, etc.)
○ Uses cgroups to have metered/limited/reserved resources
What are containers?
Characteristics:
● Fast
○ Boots in milliseconds
● Lightweight
○ Just a few MBs of intrinsic disk/memory usage
● Portable
○ Migration from one system to another like a VM.
○ Deploy new applications or kill the old ones instantly.
● Secure
○ Considerable level of security to applications, as Containers
remain isolated from each other on the guest OS.
Relationship between Virtual Machines and Containers
Docker
About Docker
● Software debuted to the public in Santa Clara at PyCon in
2013.
● Written in: Go
● Products maintained by Docker, Inc.
○ Docker Engine
○ Docker Engine Enterprise
○ Docker Hub
○ Docker Desktop
● Headquarters: San Francisco
Solomon Hykes
Original Author
What is Docker?
● Installing Docker = Installing Docker Engine + Docker CLI
● Docker Engine is a daemon which manages containers, the same way
that a hypervisor manages VMs.
● Docker CLI is used to interact with the Docker Engine.
● The Docker CLI and the Docker Engine communicate through an API.
● However, there are many other programs, and client libraries,
to use the API.
What is Docker?
Components of Docker
● Docker Client and Server
● Docker Images
● Docker Registries
● Docker Containers
1. Docker Client and Server
● The Docker Server receives the request from Docker Client, and then,
processes it accordingly.
● Docker Server is also known as, Docker Engine.
Components of Docker
Docker Daemon
Docker
Container
Docker Client Docker ClientDocker Client
Docker Host
2. Docker Containers
● Abstraction at the app layer that packages code and
dependencies together.
● Multiple containers can run on the same machine and share the OS
kernel with other containers.
● Each container runs as isolated processes in user space.
Components of Docker
3. Docker Images
● Image = files + metadata
● The file forms the root filesystem of the container.
● The metadata can indicate a number of things, like:
○ the author of the image
○ the command to execute in the container when starting it
○ environment variables to be set
○ etc.
● Images are made of layers, conceptually stacked on top of each other.
● Each layer can add, change, and remove files and/or metadata.
● Images can share layers to optimize disk usage, transfer times, and memory
use.
● Images are STATELESS and IMMUTABLE.
Components of Docker
3. Docker Images
● There are two methods to build an image:
○ By using a read-only template.
○ Create a Dockerfile (Automated way of building an image).
● The process of building a new image is called:
“COMMITING A CHANGE”.
Components of Docker
3. Docker Images
Components of Docker
Ubuntu Base
PHP Engine
Apache HTTPD
PHP Extensions
php-with-mysql
● For this image, we start with base image of Ubuntu.
● In the next layer, we add Apache.
● Next, we install the PHP Engine.
● Now, we may add some PHP Extensions
(mysql, etc.)
● Then, we tag image with the name ‘php-with-mysql’
● Once built, this image may serve as a base image
for subsequent images.
4. Docker Image Namespaces
● Official Images / Root Namespace
● User (and organizations) images / User Namespace
● Self-Hosted Images / Self-Hosted Namespace
Components of Docker
4. Docker Image Namespaces
Official Images / Root Namespace
● Root namespace is for official images.
They are put by Docker Inc., and generally authored and maintained by third parties.
● Includes images like:
○ Small, "swiss-army-knife" images like busybox.
○ Distro images to be used as bases for builds like ubuntu, fedora, etc.
○ Ready-to-use components and services, like redis, postgresql, etc.
Components of Docker
4. Docker Image Namespaces
User (and organizations) images / User Namespace
● Holds images for Docker Hub users and organizations.
● e.g. ashutoshh/image
○ Docker Hub user: ashutoshh
○ Image name: image
Components of Docker
4. Docker Image Namespaces
Self-Hosted Images / Self-Hosted Namespace
● Holds images which are not hosted on Docker Hub, but on third party registries.
● They contain the hostname (or IP address), and optionally the port,
of the registry server.
● e.g. registry.example.com:5000/image
○ registry.example.com:5000 : Host and Port of registry
○ image : Image name
Components of Docker
Docker
Use
Cases
Everything in Google runs within a container.
Over a billion containers in a week!
Google is firing up some
3,300 containers every second
on an average.
Runs containers on-premises.
Container instances host about
300 logical services.
Nodes are virtualized and running
on top of VMware vSphere
About 1,000 container
instances across 32 nodes.
Finnish Railways could increase the density and utilization of its
Amazon compute instances, saving on its cloud bill.
An Average Cost savings of 50% with Docker Enterprise Edition.
About 800 container instances
in total (300 are for production).
Finnish Railways
THANK YOU :)
Questions?

Contenu connexe

Tendances

Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to DockerAditya Konarde
 
Introduction to Docker Compose
Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker ComposeAjeet Singh Raina
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)Gourav Varma
 
Introduction to Docker - VIT Campus
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT CampusAjeet Singh Raina
 
Docker introduction
Docker introductionDocker introduction
Docker introductionPhuc Nguyen
 
Docker 101: Introduction to Docker
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to DockerDocker, Inc.
 
Docker intro
Docker introDocker intro
Docker introOleg Z
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...Edureka!
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Simplilearn
 
Docker introduction
Docker introductionDocker introduction
Docker introductiondotCloud
 
Dockers and containers basics
Dockers and containers basicsDockers and containers basics
Dockers and containers basicsSourabh Saxena
 
Docker Birthday #3 - Intro to Docker Slides
Docker Birthday #3 - Intro to Docker SlidesDocker Birthday #3 - Intro to Docker Slides
Docker Birthday #3 - Intro to Docker SlidesDocker, Inc.
 
Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker, Inc.
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker IntroductionSparkbit
 

Tendances (20)

Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Introduction to Docker Compose
Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker Compose
 
Docker introduction (1)
Docker introduction (1)Docker introduction (1)
Docker introduction (1)
 
presentation on Docker
presentation on Dockerpresentation on Docker
presentation on Docker
 
Introduction to Docker - VIT Campus
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
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 101: Introduction to Docker
Docker 101: Introduction to DockerDocker 101: Introduction to Docker
Docker 101: Introduction to Docker
 
Docker intro
Docker introDocker intro
Docker intro
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
 
What is Docker
What is DockerWhat is Docker
What is Docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Dockers and containers basics
Dockers and containers basicsDockers and containers basics
Dockers and containers basics
 
Docker in real life
Docker in real lifeDocker in real life
Docker in real life
 
Docker Birthday #3 - Intro to Docker Slides
Docker Birthday #3 - Intro to Docker SlidesDocker Birthday #3 - Intro to Docker Slides
Docker Birthday #3 - Intro to Docker Slides
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 

Similaire à Docker 101 : Introduction to Docker and Containers

Docker up and Running For Web Developers
Docker up and Running For Web DevelopersDocker up and Running For Web Developers
Docker up and Running For Web DevelopersBADR
 
Docker Up and Running for Web Developers
Docker Up and Running for Web DevelopersDocker Up and Running for Web Developers
Docker Up and Running for Web DevelopersAmr Fawzy
 
Introduction to Docker and Monitoring with InfluxData
Introduction to Docker and Monitoring with InfluxDataIntroduction to Docker and Monitoring with InfluxData
Introduction to Docker and Monitoring with InfluxDataInfluxData
 
Docker primer and tips
Docker primer and tipsDocker primer and tips
Docker primer and tipsSamuel Chow
 
Best Practices for Developing & Deploying Java Applications with Docker
Best Practices for Developing & Deploying Java Applications with DockerBest Practices for Developing & Deploying Java Applications with Docker
Best Practices for Developing & Deploying Java Applications with DockerEric Smalling
 
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...Ambassador Labs
 
Docker on Power Systems
Docker on Power SystemsDocker on Power Systems
Docker on Power SystemsCesar Maciel
 
Docker presentation
Docker presentationDocker presentation
Docker presentationthehoagie
 
Getting started with docker (2017)
Getting started with docker (2017)Getting started with docker (2017)
Getting started with docker (2017)JEMLI Fathi
 
[@NaukriEngineering] Docker 101
[@NaukriEngineering] Docker 101[@NaukriEngineering] Docker 101
[@NaukriEngineering] Docker 101Naukri.com
 
Azure ai on premises with docker
Azure ai on premises with  dockerAzure ai on premises with  docker
Azure ai on premises with dockerVishwas N
 
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete MeetupIntroducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete MeetupAlexandra Karapidaki
 
Container on azure
Container on azureContainer on azure
Container on azureVishwas N
 

Similaire à Docker 101 : Introduction to Docker and Containers (20)

Docker up and Running For Web Developers
Docker up and Running For Web DevelopersDocker up and Running For Web Developers
Docker up and Running For Web Developers
 
Docker Up and Running for Web Developers
Docker Up and Running for Web DevelopersDocker Up and Running for Web Developers
Docker Up and Running for Web Developers
 
Introduction to Docker and Monitoring with InfluxData
Introduction to Docker and Monitoring with InfluxDataIntroduction to Docker and Monitoring with InfluxData
Introduction to Docker and Monitoring with InfluxData
 
Docker primer and tips
Docker primer and tipsDocker primer and tips
Docker primer and tips
 
Containerization using docker and its applications
Containerization using docker and its applicationsContainerization using docker and its applications
Containerization using docker and its applications
 
Containerization using docker and its applications
Containerization using docker and its applicationsContainerization using docker and its applications
Containerization using docker and its applications
 
DOCKER-PIAIC-SLIDES
DOCKER-PIAIC-SLIDESDOCKER-PIAIC-SLIDES
DOCKER-PIAIC-SLIDES
 
Best Practices for Developing & Deploying Java Applications with Docker
Best Practices for Developing & Deploying Java Applications with DockerBest Practices for Developing & Deploying Java Applications with Docker
Best Practices for Developing & Deploying Java Applications with Docker
 
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...
Velocity NYC 2017: Building Resilient Microservices with Kubernetes, Docker, ...
 
Docker on Power Systems
Docker on Power SystemsDocker on Power Systems
Docker on Power Systems
 
Docker presentation
Docker presentationDocker presentation
Docker presentation
 
Getting started with docker (2017)
Getting started with docker (2017)Getting started with docker (2017)
Getting started with docker (2017)
 
Docker 101
Docker 101Docker 101
Docker 101
 
[@NaukriEngineering] Docker 101
[@NaukriEngineering] Docker 101[@NaukriEngineering] Docker 101
[@NaukriEngineering] Docker 101
 
Docker for dev
Docker for devDocker for dev
Docker for dev
 
JOSA TechTalks - Docker in Production
JOSA TechTalks - Docker in ProductionJOSA TechTalks - Docker in Production
JOSA TechTalks - Docker in Production
 
Azure ai on premises with docker
Azure ai on premises with  dockerAzure ai on premises with  docker
Azure ai on premises with docker
 
Docker Container Introduction
Docker Container IntroductionDocker Container Introduction
Docker Container Introduction
 
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete MeetupIntroducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
Introducing & playing with Docker | Manel Martinez | 1st Docker Crete Meetup
 
Container on azure
Container on azureContainer on azure
Container on azure
 

Dernier

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Dernier (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Docker 101 : Introduction to Docker and Containers

  • 1. Docker 101 Introduction to Docker and Containers
  • 2. Ashutoshh Singh About Me ashutoshh@linux.com +91-9509957594 linkedin.com/in/ashutoshh ● Chief Technology Officer, AdHoc Networks ● DevOps Consultant ● Research Areas: DevOps, Deep Learning, Neural Networks ● Talks: ○ PyCon India 2017 ○ DevConf India 2018 ● Open Source Contributor: Fedora, Docker and Ansible slashdevops.blogspot.com
  • 3. Agenda ● Why Containers? ● What are Containers? ○ Characteristics ○ Relationship between VMs and Containers. ● Docker ○ About Docker ○ What is Docker? ○ Components of Docker ● Docker Use Cases
  • 5. 1. Software Industry has Changed ● Before: ○ monolithic applications ○ long development cycles ○ single environment ○ slowly scaling up ● Now: ○ de-coupled services ○ fast and iterative improvements ○ multiple environments ○ quickly scaling out
  • 6. 2. Deployment becomes Complex ● Many different stacks: ○ Languages ○ Frameworks ○ Databases ● Many different targets: ○ Individual development environments ○ Pre-production, QA, staging ○ Production: On-premise, Cloud, Hybrid
  • 8. Parallel Problem in Shipping Industry
  • 9. Solution for Shipping Industry: Intermodal Shipping Containers
  • 10. Solution for Software Industry: Container System for Applications
  • 12. ● a Set of Processes sharing a common Kernel’s resources for execution. ● Isolated from the rest of the machine. (can’t see/affect/harm host or other containers) ● Implementation: ○ Uses namespaces to view the system’s privately (network interfaces, PID tree, etc.) ○ Uses cgroups to have metered/limited/reserved resources What are containers?
  • 13.
  • 14. Characteristics: ● Fast ○ Boots in milliseconds ● Lightweight ○ Just a few MBs of intrinsic disk/memory usage ● Portable ○ Migration from one system to another like a VM. ○ Deploy new applications or kill the old ones instantly. ● Secure ○ Considerable level of security to applications, as Containers remain isolated from each other on the guest OS.
  • 15. Relationship between Virtual Machines and Containers
  • 17. About Docker ● Software debuted to the public in Santa Clara at PyCon in 2013. ● Written in: Go ● Products maintained by Docker, Inc. ○ Docker Engine ○ Docker Engine Enterprise ○ Docker Hub ○ Docker Desktop ● Headquarters: San Francisco Solomon Hykes Original Author
  • 18. What is Docker? ● Installing Docker = Installing Docker Engine + Docker CLI ● Docker Engine is a daemon which manages containers, the same way that a hypervisor manages VMs. ● Docker CLI is used to interact with the Docker Engine. ● The Docker CLI and the Docker Engine communicate through an API. ● However, there are many other programs, and client libraries, to use the API.
  • 20.
  • 21. Components of Docker ● Docker Client and Server ● Docker Images ● Docker Registries ● Docker Containers
  • 22. 1. Docker Client and Server ● The Docker Server receives the request from Docker Client, and then, processes it accordingly. ● Docker Server is also known as, Docker Engine. Components of Docker Docker Daemon Docker Container Docker Client Docker ClientDocker Client Docker Host
  • 23. 2. Docker Containers ● Abstraction at the app layer that packages code and dependencies together. ● Multiple containers can run on the same machine and share the OS kernel with other containers. ● Each container runs as isolated processes in user space. Components of Docker
  • 24.
  • 25. 3. Docker Images ● Image = files + metadata ● The file forms the root filesystem of the container. ● The metadata can indicate a number of things, like: ○ the author of the image ○ the command to execute in the container when starting it ○ environment variables to be set ○ etc. ● Images are made of layers, conceptually stacked on top of each other. ● Each layer can add, change, and remove files and/or metadata. ● Images can share layers to optimize disk usage, transfer times, and memory use. ● Images are STATELESS and IMMUTABLE. Components of Docker
  • 26. 3. Docker Images ● There are two methods to build an image: ○ By using a read-only template. ○ Create a Dockerfile (Automated way of building an image). ● The process of building a new image is called: “COMMITING A CHANGE”. Components of Docker
  • 27. 3. Docker Images Components of Docker Ubuntu Base PHP Engine Apache HTTPD PHP Extensions php-with-mysql ● For this image, we start with base image of Ubuntu. ● In the next layer, we add Apache. ● Next, we install the PHP Engine. ● Now, we may add some PHP Extensions (mysql, etc.) ● Then, we tag image with the name ‘php-with-mysql’ ● Once built, this image may serve as a base image for subsequent images.
  • 28. 4. Docker Image Namespaces ● Official Images / Root Namespace ● User (and organizations) images / User Namespace ● Self-Hosted Images / Self-Hosted Namespace Components of Docker
  • 29. 4. Docker Image Namespaces Official Images / Root Namespace ● Root namespace is for official images. They are put by Docker Inc., and generally authored and maintained by third parties. ● Includes images like: ○ Small, "swiss-army-knife" images like busybox. ○ Distro images to be used as bases for builds like ubuntu, fedora, etc. ○ Ready-to-use components and services, like redis, postgresql, etc. Components of Docker
  • 30. 4. Docker Image Namespaces User (and organizations) images / User Namespace ● Holds images for Docker Hub users and organizations. ● e.g. ashutoshh/image ○ Docker Hub user: ashutoshh ○ Image name: image Components of Docker
  • 31. 4. Docker Image Namespaces Self-Hosted Images / Self-Hosted Namespace ● Holds images which are not hosted on Docker Hub, but on third party registries. ● They contain the hostname (or IP address), and optionally the port, of the registry server. ● e.g. registry.example.com:5000/image ○ registry.example.com:5000 : Host and Port of registry ○ image : Image name Components of Docker
  • 33. Everything in Google runs within a container. Over a billion containers in a week! Google is firing up some 3,300 containers every second on an average.
  • 34. Runs containers on-premises. Container instances host about 300 logical services. Nodes are virtualized and running on top of VMware vSphere About 1,000 container instances across 32 nodes.
  • 35. Finnish Railways could increase the density and utilization of its Amazon compute instances, saving on its cloud bill. An Average Cost savings of 50% with Docker Enterprise Edition. About 800 container instances in total (300 are for production). Finnish Railways
  • 36.