SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
Understanding LXC & Docker
www.comprinno.net 1
By Prasad Puranik (@pspuranik)
www.comprinno.net 2
DISCUSSION FLOW
www.comprinno.net 3
UNDERSTANDING LXC
LXC (LinuX Containers) is
an operating system–level
virtualization method for
running multiple isolated
Linux systems (containers)
on a single control host.
Server
Host OS
Bins/Libs
APP
Bins/Libs
App
LXC
ISOLATED
www.comprinno.net 4
UNDERSTANDING LXC
Kernel
uts
mount
pid
network
user
ipc
LXC (LinuX Containers) is
an operating system–level
virtualization method for
running multiple isolated
Linux systems (containers)
on a single control host. This
is accomplished through
kernel level isolation.
www.comprinno.net 5
UNDERSTANDING LXC
LXC uses many kernel
features to contain
processes.
Kernel Namespaces
AppArmor & SELinux Profiles
Seccomp policies
chroot
cgroups
www.comprinno.net 6
UNDERSTANDING LXC
The goal of LXC is to create an environment
as close as possible as a standard Linux
installation but without the need for a separate
kernel.
www.comprinno.net 7
DOCKER as a LXC MANAGER
Server
Host OS
Bins/Libs
APP
Bins/Libs
App
Where does Docker fits
here?
www.comprinno.net 8
DOCKER as a LXC MANAGER
Server
Host OS
Docker
Bins/Libs
APP
Bins/Libs
AppOn top of this low-level
foundation of kernel features,
Docker offers a high-level
tool with several powerful
functionalities
www.comprinno.net 9
DOCKER as a LXC MANAGER
Server
Host OS
Docker
Bins/Libs
APP
Bins/Libs
App
www.comprinno.net 10
DOCKER as a LXC MANAGER
Portable deployment across machines
Application-centric
Automatic build
Versioning
Component re-use
Tool ecosystem
www.comprinno.net 11
LXC vsVM
Server
Host OS
Docker
Bins/Libs
AP`P
Bins/Libs
App
Server
Host OS
Hypervisor
Guest OS
Bins/Libs
APP
Bins/Libs
App
Guest OS
Bins/Libs
APP
Bins/Libs
App
LXC
VM
www.comprinno.net 12
LXC vsVM
Server
Host OS
Docker
Bins/Libs
AP`P
Bins/Libs
App
LXC
Lightweight & Resource
Friendly
Comprehensive process and
resource isolation
Rapid & Easy Deployment
www.comprinno.net 13
LXC vsVM
Lightweight & Resource
Friendly
Comprehensive process and
resource isolation
Rapid & Easy Deployment
Who all are choosing LXC overVM?
www.comprinno.net 14
WHY DOCKER(LXC)?
QUICK AND EASY MULTI-TENANCY
LOW COSTS ENV ISOLATION
FASTER MIGRATIONTO SaaS MODEL
www.comprinno.net 15
DOCKER FOR QUICK AND EASY MULTI-TENANCY
:
Host OS
Docker
Bins/Libs
APP
Bins/Libs
App
Bins/Libs
App
Bins/Libs
App
Bins/Libs
App
www.comprinno.net 16
DOCKER FOR QUICK AND EASY MULTI-TENANCY
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2
Bins/Libs
App
Tenant3
Bins/Libs
App
Tenant4
Bins/Libs
App
Tenant5
www.comprinno.net 17
DOCKER FOR LOW COST ENV ISOLATION
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2
Bins/Libs
App
Tenant3
Bins/Libs
App
Tenant4
Bins/Libs
App
Tenant5
Isolation using chroot,
cgroup, namespaces,
SELinux, AppArmor,
netfilter (iptables)
www.comprinno.net 18
DOCKER FOR FASTER MIGRATIONTO SaaS MODEL
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2
Bins/Libs
App
Tenant3
Bins/Libs
App
Tenant4
Bins/Libs
App
Tenant5
www.comprinno.net 19
CONCLUDING REMARKS
:
“If you can run your application on
Linux host, you can run it in LXC too.
You don’t need separateVM for that. ”
www.comprinno.net 20
About COMPRINNO
We are Cloud Solution Provisioning &
Management Experts.
We help enterprises devising, implementing
and managing cloud based IT infrastructure
and services.
We work in the domains of Cloud Computing,
Big Data, DevOps, Storage and Security.
Founded in 2013, we are a Bangalore based
company.
Our ability to deal with
complex technologies
with the ease
Our approach towards
our customers, partners,
employees &
shareholders
Our commitment for
continues improvement in
our services, products
and processes
COMPRINNO stands for
www.comprinno.net 21
Connect With Us
blogs.comprinno.net @ComprinnoTech /ComprinnoTechnologies
info@comprinno.net +91-80-2257-9047 +91-98863-01605

Más contenido relacionado

La actualidad más candente

Linux Container Technology 101
Linux Container Technology 101Linux Container Technology 101
Linux Container Technology 101
inside-BigData.com
 

La actualidad más candente (20)

Linux Container Brief for IEEE WG P2302
Linux Container Brief for IEEE WG P2302Linux Container Brief for IEEE WG P2302
Linux Container Brief for IEEE WG P2302
 
Linux Container Technology 101
Linux Container Technology 101Linux Container Technology 101
Linux Container Technology 101
 
Docker Architecture (v1.3)
Docker Architecture (v1.3)Docker Architecture (v1.3)
Docker Architecture (v1.3)
 
OpenVZ, Virtuozzo and Docker
OpenVZ, Virtuozzo and DockerOpenVZ, Virtuozzo and Docker
OpenVZ, Virtuozzo and Docker
 
Performance comparison between Linux Containers and Virtual Machines
Performance comparison between Linux Containers and Virtual MachinesPerformance comparison between Linux Containers and Virtual Machines
Performance comparison between Linux Containers and Virtual Machines
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Realizing Linux Containers (LXC)
Realizing Linux Containers (LXC)Realizing Linux Containers (LXC)
Realizing Linux Containers (LXC)
 
LXC
LXCLXC
LXC
 
Lxc- Introduction
Lxc- IntroductionLxc- Introduction
Lxc- Introduction
 
Containers in the Cloud
Containers in the CloudContainers in the Cloud
Containers in the Cloud
 
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
Wso2 con 2014-us-tutorial-apache stratos-wso2 private paas with docker integr...
 
Intro to containerization
Intro to containerizationIntro to containerization
Intro to containerization
 
Docker
DockerDocker
Docker
 
KVM and docker LXC Benchmarking with OpenStack
KVM and docker LXC Benchmarking with OpenStackKVM and docker LXC Benchmarking with OpenStack
KVM and docker LXC Benchmarking with OpenStack
 
Virtual Machines and Docker
Virtual Machines and DockerVirtual Machines and Docker
Virtual Machines and Docker
 
LXC – NextGen Virtualization for Cloud benefit realization (cloudexpo)
LXC – NextGen Virtualization for Cloud benefit realization (cloudexpo)LXC – NextGen Virtualization for Cloud benefit realization (cloudexpo)
LXC – NextGen Virtualization for Cloud benefit realization (cloudexpo)
 
Containers technologies
Containers technologiesContainers technologies
Containers technologies
 
Lxc- Linux Containers
Lxc- Linux ContainersLxc- Linux Containers
Lxc- Linux Containers
 
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Docker Intro at the Google Developer Group and Google Cloud Platform Meet UpDocker Intro at the Google Developer Group and Google Cloud Platform Meet Up
Docker Intro at the Google Developer Group and Google Cloud Platform Meet Up
 
Introduction to linux containers
Introduction to linux containersIntroduction to linux containers
Introduction to linux containers
 

Similar a Understanding LXC & Docker

Types of Containerization in DevOps - VaST ITES INC..pdf
Types of Containerization in DevOps - VaST ITES INC..pdfTypes of Containerization in DevOps - VaST ITES INC..pdf
Types of Containerization in DevOps - VaST ITES INC..pdf
VaST ITES Inc
 
VaST ITES INC. - Types of Containerization in DevOps.pdf
VaST ITES INC.  -  Types of Containerization in DevOps.pdfVaST ITES INC.  -  Types of Containerization in DevOps.pdf
VaST ITES INC. - Types of Containerization in DevOps.pdf
VaST ITES Inc
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and Docker
Fabio Fumarola
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
Atul Prajapati
 
Docker - The Linux Container
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux Container
Balaji Rajan
 

Similar a Understanding LXC & Docker (20)

paper
paperpaper
paper
 
Develop with linux containers and docker
Develop with linux containers and dockerDevelop with linux containers and docker
Develop with linux containers and docker
 
Isolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux ContainersIsolating an applications using LXC – Linux Containers
Isolating an applications using LXC – Linux Containers
 
Types of Containerization in DevOps - VaST ITES INC..pdf
Types of Containerization in DevOps - VaST ITES INC..pdfTypes of Containerization in DevOps - VaST ITES INC..pdf
Types of Containerization in DevOps - VaST ITES INC..pdf
 
VaST ITES INC. - Types of Containerization in DevOps.pdf
VaST ITES INC.  -  Types of Containerization in DevOps.pdfVaST ITES INC.  -  Types of Containerization in DevOps.pdf
VaST ITES INC. - Types of Containerization in DevOps.pdf
 
Types of Containerization in DevOps - VaST ITES INC. (1).pdf
Types of Containerization in DevOps - VaST ITES INC. (1).pdfTypes of Containerization in DevOps - VaST ITES INC. (1).pdf
Types of Containerization in DevOps - VaST ITES INC. (1).pdf
 
2 Linux Container and Docker
2 Linux Container and Docker2 Linux Container and Docker
2 Linux Container and Docker
 
HLayer / Docker and its ecosystem
HLayer / Docker and its ecosystemHLayer / Docker and its ecosystem
HLayer / Docker and its ecosystem
 
Containers for Lawyers Richard Fontana
Containers for Lawyers  Richard FontanaContainers for Lawyers  Richard Fontana
Containers for Lawyers Richard Fontana
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Linux Containers : dupliquer Linux à volonté - David Hueber - Grégory Steulet...
Linux Containers : dupliquer Linux à volonté - David Hueber - Grégory Steulet...Linux Containers : dupliquer Linux à volonté - David Hueber - Grégory Steulet...
Linux Containers : dupliquer Linux à volonté - David Hueber - Grégory Steulet...
 
Evolution of containers to kubernetes
Evolution of containers to kubernetesEvolution of containers to kubernetes
Evolution of containers to kubernetes
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
The State of Linux Containers
The State of Linux ContainersThe State of Linux Containers
The State of Linux Containers
 
The Docker Ecosystem
The Docker EcosystemThe Docker Ecosystem
The Docker Ecosystem
 
Docker & Kubernetes intro
Docker & Kubernetes introDocker & Kubernetes intro
Docker & Kubernetes intro
 
Docker - The Linux Container
Docker - The Linux ContainerDocker - The Linux Container
Docker - The Linux Container
 
Docker intro
Docker introDocker intro
Docker intro
 
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
Building Distributed Systems without Docker, Using Docker Plumbing Projects -...
 
Why do I need Kubernetes?
Why do I need Kubernetes?Why do I need Kubernetes?
Why do I need Kubernetes?
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Último (20)

Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
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...
 
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
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

Understanding LXC & Docker