docker
TRANSCRIPT
Copyright @ CBPGECJ
PRESENTED BY:-
Yansi Keim & Khushboo
B.Tech (Information Technology)
VIII Semester
01120703111 & 0920703111
MENTOR:-
Mr. Mahesh Saini
Asst. Professor
Department of Information Technology
1
2. Challenges to I.T.
3. Solution through Docker
4. How they work
5. Why Docker and Container matters
6. Docker Today
7. References
CONTENTS
Copyright @ CBPGECJ
2
Fig.1
Docker an idea deriving from ship used for building, shipping and running services
OBJECTIVE
To run a distributed college app on Docker engine,
pushing the content in the repository
hence enabling multiple users to pull and providing access.
3
Copyright @ CBPGECJ
1. Aim/Objective
3. Solution through Docker
4. How they work
5. Why Docker and Container matters
6. Docker Today
7. References
CONTENTS
Copyright @ CBPGECJ
4
Market View: Evolution of IT
1995 2015
Running on any available set of
physical resources (public/private/
virtualized)
Assembled by developers using
best available services
Thin app on mobile, tablet Thick, client-server app
on thick client
Well-defined stack: - O/S - Runtime - Middleware
Monolithic Physical
Infrastructure 5
Copyright @ CBPGECJ
Challenges
2015
How to ensure services interact consistently,
avoid dependency hell
How to migrate & scale quickly, ensure compatibility
How to avoid n X n different configs
Running on any available set of
physical resources (public/private/
virtualized)
Assembled by developers using
best available services
Thin app on mobile, tablet
6
Copyright @ CBPGECJ
Static website
Web frontend
User DB
Queue Analytics DB
Background workers
API endpoint
nginx 1.5 + modsecurity + openssl + bootstrap 2
postgresql + pgv8 + v8
hadoop + hive + thrift + OpenJDK
Ruby + Rails + sass + Unicorn
Redis + redis-sentinel
Python 3.0 + celery + pyredis + libcurl + ffmpeg + libopencv + nodejs +
phantomjs
Python 2.7 + Flask + pyredis + celery + psycopg + postgresql-client
Development VM
QA server
Public Cloud
Disaster recovery
Contributor’s laptop
Production Servers
The Challenge M
ult
iplic
ity
of
Stac
ks
Mu
ltip
licit
y o
f h
ard
war
e
en
viro
nm
en
ts Production Cluster
Customer Data Center
Do
service
s and
app
s in
teract
app
rop
riately?
Can
I migrate
smo
oth
ly and
q
uickly?
7
Copyright @ CBPGECJ
Results in N X N compatibility nightmare
Static website
Web frontend
Background workers
User DB
Analytics DB
Queue
Development
VM QA Server
Single Prod
Server
Onsite
Cluster Public Cloud
Contributor’s
laptop
Customer
Servers
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
? ? ? ? ? ? ?
8
Copyright @ CBPGECJ
1. Aim/Objective
2. Challenges to I.T.
4. How they work
5. Why Docker and Container matters
6. Docker Today
7. References
CONTENTS
Copyright @ CBPGECJ
9
Static website Web frontend User DB Queue Analytics DB
Development
VM QA server Public Cloud Contributor’s
laptop
Docker is a shipping container system for code M
ult
iplic
ity
of
Stac
ks
Mu
ltip
licit
y o
f h
ard
war
e en
viro
nm
en
ts
Production
Cluster Customer Data
Center
Do
services and
app
s in
teract ap
pro
priately?
Can
I migrate
smo
oth
ly and
qu
ickly
…that can be manipulated using
standard operations and run
consistently on virtually any
hardware platform
An engine that enables any
payload to be encapsulated
as a lightweight, portable,
self-sufficient container…
10
Copyright @ CBPGECJ
Mu
ltip
licit
y o
f St
acks
M
ult
iplic
ity
of
har
dw
are
e
nvi
ron
me
nts
Do
service
s and
app
s in
teract
app
rop
riately?
Can
I migrate
smo
oth
ly and
q
uickly?
Static website
Web frontend
Background workers
User DB
Analytics DB
Queue
Development
VM QA Server
Single Prod
Server
Onsite
Cluster Public Cloud
Contributor’s
laptop
Customer
Servers
Docker solves the NXN problem
11
Copyright @ CBPGECJ
1. Aim/Objective
2. Challenges to I.T.
3. Solution through Docker
5. Why Docker and Container matters
6. Docker Today
7. References
CONTENTS
Copyright @ CBPGECJ
12
Work Flow in the System
Source Code
Repository
Dockerfile For A
Docker Engine
Docker Container
Image Registry
Build
Do
cker
Host 2 OS 2 (Linux)
Co
ntain
er A
Co
ntain
er B
Co
ntain
er C
Co
ntain
er A
Push
Search Pull
Run
Host 1 OS (Linux)
13
Copyright @ CBPGECJ
Changes and Updates
Docker Engine
Docker Container
Image Registry
Docker Engine
Push
Update
Bins/ Libs
App A
Ap
p Δ
B
ins/
Base Container
Image
Host is now running A’’
Container Mod A’’
Ap
p Δ
B
ins/
Bins/ Libs
App A
B
ins/
Bins/ Libs
App A’’
Host running A wants to upgrade to A’’. Requests update. Gets only diffs
Container Mod A’
14
Copyright @ CBPGECJ
1. Aim/Objective
2. Challenges to I.T.
3. Solution through Docker
4. How they work
6. Docker Today
7. References
CONTENTS
Copyright @ CBPGECJ
15
Application running on a Docker Engine
Application running on Virtual Machine
Why containers matter
Physical Containers Docker Container
Content Agnostic The same container can hold almost any type of payload
Can encapsulate any payload and its dependencies
Hardware Agnostic Standard shape and interface allow same container to move from ship to train to
semi-truck to warehouse to crane without being modified or opened
Using operating system primitives (e.g. Linux container, LXC) can run consistently on
virtually any hardware—VMs, bare metal, openstack, public IAAS, etc.—without
modification
Content Isolation and Interaction
Containers can be stacked and shipped together
Resource, network, and content isolation. Avoids dependency hell
Automation Standard interfaces make it easy to automate loading, unloading, moving, etc.
Standard operations to run, start, stop, commit, search, etc. Perfect for devops: CI,
CD, autoscaling, hybrid clouds
Highly efficient No opening or modification, quick to move between waypoints
Lightweight, virtually no perf or start-up penalty, quick to move and manipulate
Separation of duties Shipper worries about inside of box, carrier worries about outside of box
Developer worries about code. Ops worries about infrastructure.
16
Copyright @ CBPGECJ
1. Aim/Objective
2. Challenges to I.T.
3. Solution through Docker
4. How they work
5. Why Docker and Container matters
7. References
CONTENTS
Copyright @ CBPGECJ
17
Docker Today in I.T. Market
• Launched in March 2013 by dotCloud.
• 19,000+ GitHub stars
• 100M+ Docker Engine downloads
• 75,000+ "Dockerized" applications in the Docker Hub Registry
• 150+ Docker Meetup Groups in 50 countries including Banaglore in India
• 770+ community contributors
• 50,000 third-party projects on GitHub using Docker as well as partnerships
spanning PaaS, operating systems, hosting services, CI platforms, and more.
• Over 100 user-generated case studies available from companies such as eBay,
Rackspace, New Relic, Gilt, Spotify, Cloudflare, Yandex, Cambridge Healthcare,
Yelp and RelatelQ.
18
Copyright @ CBPGECJ
1. Aim/Objective
2. Challenges to I.T.
3. Solution through Docker
4. How they work
5. Why Docker and Container matters
6. Docker Today
CONTENTS
Copyright @ CBPGECJ
19
• http://blogs.forrester.com/charlie_dai/14-06-10-docker_will_disrupt_virtualization_and_drive_cloud_adoption_0
• http://www.infoworld.com/article/2609888/virtualization/docker-challenges-virtualization-market-with-containers.html
• http://www.computerworlduk.com/news/open-source/3524619/docker-containers-to-take-a-bite-out-of-virtualisation-market-says-forrester/
• https://www.dotcloud.com/
• http://www.meetup.com/Docker-Bangalore
• http://www.liquidweb.com/kb/how-to-install-docker-on-ubuntu-14-04-lts/
References
20
Copyright @ CBPGECJ