Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
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
runnin...
www.comprinno.net 4
UNDERSTANDING LXC
Kernel
uts
mount
pid
network
user
ipc
LXC (LinuX Containers) is
an operating system–...
www.comprinno.net 5
UNDERSTANDING LXC
LXC uses many kernel
features to contain
processes.
Kernel Namespaces
AppArmor & SEL...
www.comprinno.net 6
UNDERSTANDING LXC
The goal of LXC is to create an environment
as close as possible as a standard Linux...
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
foun...
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
Versi...
www.comprinno.net 11
LXC vsVM
Server
Host OS
Docker
Bins/Libs
AP`P
Bins/Libs
App
Server
Host OS
Hypervisor
Guest OS
Bins/L...
www.comprinno.net 12
LXC vsVM
Server
Host OS
Docker
Bins/Libs
AP`P
Bins/Libs
App
LXC
Lightweight & Resource
Friendly
Compr...
www.comprinno.net 13
LXC vsVM
Lightweight & Resource
Friendly
Comprehensive process and
resource isolation
Rapid & Easy De...
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
Bi...
www.comprinno.net 16
DOCKER FOR QUICK AND EASY MULTI-TENANCY
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2
...
www.comprinno.net 17
DOCKER FOR LOW COST ENV ISOLATION
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2
Bins/L...
www.comprinno.net 18
DOCKER FOR FASTER MIGRATIONTO SaaS MODEL
:
Host OS
Docker
Bins/Libs
APP
Tenant1
Bins/Libs
App
Tenant2...
www.comprinno.net 19
CONCLUDING REMARKS
:
“If you can run your application on
Linux host, you can run it in LXC too.
You d...
www.comprinno.net 20
About COMPRINNO
We are Cloud Solution Provisioning &
Management Experts.
We help enterprises devising...
www.comprinno.net 21
Connect With Us
blogs.comprinno.net @ComprinnoTech /ComprinnoTechnologies
info@comprinno.net +91-80-2...
Upcoming SlideShare
Loading in …5
×

Understanding LXC & Docker

1,955 views

Published on

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.

Published in: Technology, Business
  • Be the first to comment

Understanding LXC & Docker

  1. 1. Understanding LXC & Docker www.comprinno.net 1 By Prasad Puranik (@pspuranik)
  2. 2. www.comprinno.net 2 DISCUSSION FLOW
  3. 3. 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
  4. 4. 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.
  5. 5. www.comprinno.net 5 UNDERSTANDING LXC LXC uses many kernel features to contain processes. Kernel Namespaces AppArmor & SELinux Profiles Seccomp policies chroot cgroups
  6. 6. 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.
  7. 7. www.comprinno.net 7 DOCKER as a LXC MANAGER Server Host OS Bins/Libs APP Bins/Libs App Where does Docker fits here?
  8. 8. 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
  9. 9. www.comprinno.net 9 DOCKER as a LXC MANAGER Server Host OS Docker Bins/Libs APP Bins/Libs App
  10. 10. www.comprinno.net 10 DOCKER as a LXC MANAGER Portable deployment across machines Application-centric Automatic build Versioning Component re-use Tool ecosystem
  11. 11. 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
  12. 12. 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
  13. 13. www.comprinno.net 13 LXC vsVM Lightweight & Resource Friendly Comprehensive process and resource isolation Rapid & Easy Deployment Who all are choosing LXC overVM?
  14. 14. www.comprinno.net 14 WHY DOCKER(LXC)? QUICK AND EASY MULTI-TENANCY LOW COSTS ENV ISOLATION FASTER MIGRATIONTO SaaS MODEL
  15. 15. 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
  16. 16. 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
  17. 17. 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)
  18. 18. 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
  19. 19. 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. ”
  20. 20. 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
  21. 21. www.comprinno.net 21 Connect With Us blogs.comprinno.net @ComprinnoTech /ComprinnoTechnologies info@comprinno.net +91-80-2257-9047 +91-98863-01605

×