SlideShare a Scribd company logo
Containers in Cloud
2
Agenda
• Why Containers?
• What are Containers?
• History of Containers
• Docker
• Orchestration
• Docker Swarm
• Demo (If you are still awake)
3
Why Containers?
4
Why Containers?
5
Complex Systems with many payloads
6
Multiple targets
QA
Build server
Stage Prod
Cloud(s)
7
Problem
8
Similar problem
9
Solution
10
What are Containers?
11
What are containers?
Containers offer an isolated environment – as close as possible
to a VM – without the overhead of running a separate kernel
and simulating all the hardware
12
Virtualization vs Containerization
13
History of Containers
• Chroot – 1979
• FreeBSD Jails – 2000
• Linux Vserver – 2001
• Solaris Containers – 2004
• OpenVZ – 2005
• Process Containers – 2006
• Control Groups (cgroups) – 2007
• LXC – 2008
• Warden – 2011
• LMCTFY – 2013
• Docker – 2013
• Rocket (rkt) – 2014
14
LXC
15
Docker
• Open Source
• Builds on top of LXC
• Provides portable format and
runtime environment to deploy
application inside containers
• Containers optimized by layers
• Manages dependencies
16
Docker Architecture
17
How it works?
18
Containers before Docker
19
Containers after Docker
20
Container Orchestration
• Manage/Provision multi-container
applications
• Application blueprint from a
schema (JSON or YAML)
• Monitoring
• Upgrades (rolling) and Rollback
• Policy management
• Service discovery
• Ease of use
• Integration with existing systems
21
Docker Swarm
$ docker swarm init
$ docker swarm join
• Cluster management within the Docker engine
• No additional software to manage a Swarm
• Easy to setup
• Scaling
• Built-In
• Multi-host networking
• Service discovery
• Load balancing (L4)
• Security
• Rolling updates
• But… Not a real orchestration tool (not yet!)
22
Demo

More Related Content

PPTX
Performance comparison between Linux Containers and Virtual Machines
Soheila Dehghanzadeh
 
PPTX
Containers and Cloud: From LXC to Docker to Kubernetes
Shreyas MM
 
PDF
Leverage LXC/LXD with Kubernetes
Lin Sun
 
PDF
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Lakmal Warusawithana
 
PDF
Docker architecture (version modified)
Amir Arsalan
 
PDF
Docker Architecture
Mohammadreza Amini
 
PDF
Lxd the proper way of runing containers
Marian Marinov
 
PDF
Understanding LXC & Docker
Comprinno Technologies
 
Performance comparison between Linux Containers and Virtual Machines
Soheila Dehghanzadeh
 
Containers and Cloud: From LXC to Docker to Kubernetes
Shreyas MM
 
Leverage LXC/LXD with Kubernetes
Lin Sun
 
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Lakmal Warusawithana
 
Docker architecture (version modified)
Amir Arsalan
 
Docker Architecture
Mohammadreza Amini
 
Lxd the proper way of runing containers
Marian Marinov
 
Understanding LXC & Docker
Comprinno Technologies
 

What's hot (20)

PDF
Docker Architecture (v1.3)
rajdeep
 
PDF
Introdution to Docker (theory and hands on) dbCafé - dbTrento
Cristian Consonni
 
PDF
Docker and the Linux Kernel
Docker, Inc.
 
PDF
Introduction to docker
Hiroki Endo
 
PDF
Docker Introduction
Sparkbit
 
PDF
Docker introduction for Carbon IT
yannick grenzinger
 
PDF
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
Docker, Inc.
 
PPTX
Introduction to Docker - What is it and how is it compared to VM's
Jeremy Haas
 
PDF
Understand how docker works
Justin Li
 
PDF
Docker Fundamentals
Mien Dinh
 
PDF
Virtual Machines and Docker
Danish Khakwani
 
PPTX
Docker introduction
dotCloud
 
PDF
Intro to containerization
Balint Pato
 
PDF
Intro To Docker
Jessica Lucci
 
PDF
Docker
Patrick Oberdorf
 
PDF
Docker architecture(version modified)
Mohammadreza Amini
 
PPTX
Docker basics
AmanSoni129
 
PDF
LXD: The hypervisor that isn't
tych0
 
PDF
Linux Container Technology 101
inside-BigData.com
 
PDF
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Jérôme Petazzoni
 
Docker Architecture (v1.3)
rajdeep
 
Introdution to Docker (theory and hands on) dbCafé - dbTrento
Cristian Consonni
 
Docker and the Linux Kernel
Docker, Inc.
 
Introduction to docker
Hiroki Endo
 
Docker Introduction
Sparkbit
 
Docker introduction for Carbon IT
yannick grenzinger
 
Mobycraft:Docker in 8-bit (Meetup at Docker HQ 4/7)
Docker, Inc.
 
Introduction to Docker - What is it and how is it compared to VM's
Jeremy Haas
 
Understand how docker works
Justin Li
 
Docker Fundamentals
Mien Dinh
 
Virtual Machines and Docker
Danish Khakwani
 
Docker introduction
dotCloud
 
Intro to containerization
Balint Pato
 
Intro To Docker
Jessica Lucci
 
Docker architecture(version modified)
Mohammadreza Amini
 
Docker basics
AmanSoni129
 
LXD: The hypervisor that isn't
tych0
 
Linux Container Technology 101
inside-BigData.com
 
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Jérôme Petazzoni
 
Ad

Viewers also liked (20)

PPT
Managing Environmental Data in the Google Age
Thierry Gregorius
 
PPTX
Introduction to Containers and Cloud
Vincent Power
 
PPTX
Syllabus Global Energy Transition Underway
Sibrenne Wagenaar
 
PDF
Agile and Scrum Methodology
Kan Ouivirach, Ph.D.
 
PPTX
agile with scrum methodology
rahul reddy
 
PPT
Agile Scrum Methodology
Dr. Syed Hassan Amin
 
PPTX
Containers - Cloud Phoenix March Meetup
Miguel Zuniga
 
PPTX
Dockerin10mins
Dawood M.S
 
PPTX
Small team scrum and kanban
David Daniel
 
PPTX
Device drivers Introduction
vijay selva
 
PDF
Linux kernel code
Ganesh Naik
 
PPT
Linuxdd[1]
mcganesh
 
PDF
Gnubs-pres-foss-cdac-sem
Sagun Baijal
 
PPTX
Device Drivers in Linux
Shreyas MM
 
PDF
Breaking into Open Source and Linux: A USB 3.0 Success Story
Sage Sharp
 
PDF
brief intro to Linux device drivers
Alexandre Moreno
 
PPT
File system
Harleen Johal
 
PPTX
Types of application program
Roselyn Villanueva
 
PDF
Containers & Cloud
SUSE
 
PDF
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Mohamed Abdallah
 
Managing Environmental Data in the Google Age
Thierry Gregorius
 
Introduction to Containers and Cloud
Vincent Power
 
Syllabus Global Energy Transition Underway
Sibrenne Wagenaar
 
Agile and Scrum Methodology
Kan Ouivirach, Ph.D.
 
agile with scrum methodology
rahul reddy
 
Agile Scrum Methodology
Dr. Syed Hassan Amin
 
Containers - Cloud Phoenix March Meetup
Miguel Zuniga
 
Dockerin10mins
Dawood M.S
 
Small team scrum and kanban
David Daniel
 
Device drivers Introduction
vijay selva
 
Linux kernel code
Ganesh Naik
 
Linuxdd[1]
mcganesh
 
Gnubs-pres-foss-cdac-sem
Sagun Baijal
 
Device Drivers in Linux
Shreyas MM
 
Breaking into Open Source and Linux: A USB 3.0 Success Story
Sage Sharp
 
brief intro to Linux device drivers
Alexandre Moreno
 
File system
Harleen Johal
 
Types of application program
Roselyn Villanueva
 
Containers & Cloud
SUSE
 
Raspberry Pi - Lecture 6 Working on Raspberry Pi
Mohamed Abdallah
 
Ad

Similar to Containers in the Cloud (20)

PPTX
containers-in-cloud introduction to ppts
Radhika R
 
PPTX
containers-in-cloud.pptx introduction part
Radhika R
 
PPTX
containers-in-cloud introduction example
Radhika R
 
PPTX
Containerization - The DevOps Revolution
Yulian Slobodyan
 
PPTX
SummerStudent17_HandsOn Data Cloud Computing.pptx
ssuserb53446
 
PDF
Docker Containers Deep Dive
Will Kinard
 
PDF
Introduction to Containers - SQL Server and Docker
Chris Taylor
 
PDF
Docker
Anil Wadghule
 
PPTX
Docker and kubernetes_introduction
Jason Hu
 
PPTX
CONTAINERIZATION WITH DOCKER .pptx
SanjuGamesphere
 
PPTX
Central Iowa Linux Users Group: November Meeting -- Container showdown
Andrew Denner
 
PDF
HLayer / Docker and its ecosystem
Aymen EL Amri
 
PDF
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
NETWAYS
 
PPTX
Academy PRO: Docker. Part 1
Binary Studio
 
PPTX
DockerCon EU 2015 Barcelona
Roman Dembitsky
 
PPT
Sebastien goasguen cloud stack and docker
ShapeBlue
 
PPTX
LASUG Online: Introduction to Docker and Docker Tools
Vasiliy Fomichev
 
PPTX
Docker and Sitecore : Sci-Fi or match made in heaven?
Saber Karmous
 
PDF
Docker from A to Z, including Swarm and OCCS
Frank Munz
 
containers-in-cloud introduction to ppts
Radhika R
 
containers-in-cloud.pptx introduction part
Radhika R
 
containers-in-cloud introduction example
Radhika R
 
Containerization - The DevOps Revolution
Yulian Slobodyan
 
SummerStudent17_HandsOn Data Cloud Computing.pptx
ssuserb53446
 
Docker Containers Deep Dive
Will Kinard
 
Introduction to Containers - SQL Server and Docker
Chris Taylor
 
Docker and kubernetes_introduction
Jason Hu
 
CONTAINERIZATION WITH DOCKER .pptx
SanjuGamesphere
 
Central Iowa Linux Users Group: November Meeting -- Container showdown
Andrew Denner
 
HLayer / Docker and its ecosystem
Aymen EL Amri
 
stackconf 2020 | Replace your Docker based Containers with Cri-o Kata Contain...
NETWAYS
 
Academy PRO: Docker. Part 1
Binary Studio
 
DockerCon EU 2015 Barcelona
Roman Dembitsky
 
Sebastien goasguen cloud stack and docker
ShapeBlue
 
LASUG Online: Introduction to Docker and Docker Tools
Vasiliy Fomichev
 
Docker and Sitecore : Sci-Fi or match made in heaven?
Saber Karmous
 
Docker from A to Z, including Swarm and OCCS
Frank Munz
 

Recently uploaded (20)

PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Doc9.....................................
SofiaCollazos
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 

Containers in the Cloud

Editor's Notes

  • #3: Agenda – Just like meetings should have agenda. So you can decide if you want to stay 
  • #5: Why containers? Before we answer that question, lets take a look at the hardware installed on various production systems. Virt – tech that separates an os from physical resources. Reduce energy, vendor lock in, faster provisioning of servers, reduce data center footprint Hypervisor presents the the host os a complete set of cpu memory and disk fooling it to believe that its running on a real hardware. So this solves the hardware resources problem by abstracting the hardware from the OS and provides the ability of allocating chunks of compute when necessary
  • #6: Modern software systems are very complex. A simple app can have a RDBMS, a document DB, quques, middleware systems, static website etc. And all of these systems can be written in a plethora of languages as per the component needs. So you have many components with different runtimes, and you code that runs on them. Consider CI/CD env and things get really messy
  • #7: Multiple targets
  • #8: So complex software systems which requires multiple runtimes and are being distributed to variety of physical machines gives us a the Matrix hell
  • #9: Before we go further, lets look at a similar problem in the physical world. The shipping industry Until 1950s shipping was messy labor intensive and a drain Malcom Mclean invented the container which standardized the movement of cargo 1966 first international ship voyage
  • #10: So just like the shipping industry intermodal containers, our Linux container helps overcoming the matrix of hell
  • #11: Agenda – Just like meetings should have agenda. So you can decide if you want to stay 
  • #12: Sort of the definition from the linuxcontainer org
  • #13: Before we talk more about container, lets take a step back and understand the diff between virt and containerization So virt is a tech that separates the OS from the physical resources. The hypervisor provides a complete set of hardware, cpu, mem disk etc to the guest OS fooling it to believe that it is running on a real hardware Containerization, host and guests share the same kernel. Eliminates waste. Free of OS overhead So its considerably smaler, easier to move and most imp faster to provision I/O and mem are also close to native perf But all containers need to share the same base linux kernel
  • #14: Containers are not something that Docker invented. The bases of containers have been available in the linux kernel in some form since many year now. Chroot – or change root. Changes root dir of process and child process. So provides isolation of some form to install virtualized copies of software Cgroups – limits and isolates resource usage of a collection of processes LXC – is an OS level virtualization that is built using Linux kernel features like chroot, cgroups, namespaces etc
  • #15: LXC is a userspace interface for linux kernel containment features LXC creates a env as close to a standard linux kernel but without the need for a separate kernel Its between a chroot and a full fledged VM Kernel namespaces – ipc, uts, mount, pid, network and user Just as chroot allows processes to see any arbitrary directory as the root of the system (independent of the rest of the processes), Linux namespaces allow other aspects of the operating system to be independently modified as well. This includes the process tree, networking interfaces, mount points, inter-process communication resources and more Apparmor and SELinux profiles Linux kernel security allow for easy control of access between processes and objects, processes and other processes, and objects and other objects Seccomp policies restrict system calls that can be made from a process. Key component in sandboxing Chroots arbitory directory Cgroups allocates resources such as system mem, network bw, CPU time to user defined groups of process. They can controlled, monitored and changed. This is how you can limit cpu and mem. All linux process are children of a common parent: init process. Cgroups are also hierarchical but multiple hierarchy can exist at the same time. Unconnected trees of processes
  • #16: Docker is open source software to build ship and run any application as a container. Specifically LXC container. It extends LXC. Make it more usable by application developers. Docker containers are very light weight. Optimized with layers so easy to transport Cross platform dependencies Conflicting dependencies Custom dependencies
  • #17: Dockerd process runs as a daemon on a Linux system Core process that manages building of images, publishing them to registries and run them Docker d exposes a http api. Client talks to the daemon using the http api. Registry is where docker images are stored. Which can be later pulled
  • #18: What is a docker file. Set of linux commands that describes you images. Docker defines a build as running a sequence of Unix commands, one after the other, in the same container. Build commands modify the contents of the container (usually by installing new files on the filesystem), the next command modifies it some more, etc. Since each build command inherits the result of the previous commands, the order in which the commands are executed expresses dependencies. Show a sample from out git repo Docker build – sends the build context to the daemon which process the dockerfile and creates an image Docker run – runs a container for that image
  • #19: Container before docker We have used this sometimes to describe Cars.com arch 
  • #20: With Docker creating deploying and managing linux container is very simple
  • #21: Orchestration So we can run containers. But what about multiple containers that for an application? What about 100s of container instances across multiple server spread over a large geographic area? That when orchestration tools come in. They should have the benefits listed hear Many players in this space
  • #22: What is docker swarm. We want to talk about swarm because since docker 1.12, cluster management and routing capabilities are built in Not a complete orchestration tool But provides a lot of cluster management tools with in the docker engine itself
  • #23: Lets pray to the demo gods Add a swarm worker using terraform. Export DOCKER_HOST to one of the mangers Show docker node ls Docker network ls Etc Take a clutch based app and add PUBLISHED_PORT and INSTANCES in the mk file And run powertrain service create