Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up
for free
Introduction to Docker
José Tomás Albornoz
June 05, 2014
Programming
0
140
Introduction to Docker
Talk given in the Ruby User Group Berlin on June 5th, 2014
José Tomás Albornoz
June 05, 2014
Tweet
Share
More Decks by José Tomás Albornoz
See All by José Tomás Albornoz
eljojo
0
99
eljojo
0
45
eljojo
1
120
eljojo
0
420
Other Decks in Programming
See All in Programming
joergneumann
0
130
pyama86
4
410
yoshinoriiiii
0
110
ryokbt
2
270
bkuhlmann
2
300
rarous
0
170
williln
0
210
pirosikick
4
930
naokioouchi
1
120
ntaro
0
160
mehowte
0
180
madai0517
1
150
Featured
See All Featured
rasmusluckow
318
18k
denniskardys
220
120k
hatefulcrawdad
257
17k
smashingmag
283
47k
pedronauck
652
110k
searls
205
36k
samlambert
237
10k
orderedlist
PRO
328
36k
danielanewman
1
510
holman
288
130k
malarkey
393
61k
dougneiner
119
7.9k
Transcript
Introduction to Docker by josé albornoz
José Albornoz chilean ruby = <3 co-founding startup ! @eljojo
eljojo.net
what’s docker?
what’s docker? • Management system for LXC Containers • Lightweight
virtual machines • Applications are isolated and easy to distribute
Demo
how does it work?
Docker Image • Snapshot of filesystem • They run one
process
Demo
Layers
Layers Ubuntu
Layers Ubuntu nginx
Layers Ubuntu nginx ruby
Layers Ubuntu nginx ruby rails application
Layers !"5e66087f3ffe Virtual Size: 192.5 MB # $"4d26dd3ebc1c Virtual Size:
192.7 MB # $"99ec81b80c55 Virtual Size: 266 MB # $"efc4fbcd007f Virtual Size: 584.5 MB # $"1f089cc15e82 Virtual Size: 584.5 MB Tags: ubuntu # #$"5c1088024f94 Virtual Size: 876.2 MB Tags: ubuntu-desktop # # $"afe3aba3e6e0 Virtual Size: 1.06 GB Tags: chrome # !"a97296852f54 Virtual Size: 606.2 MB # # $"4e81a0cd7256 Virtual Size: 606.2 MB Tags: ruby # !"c2b10e69958d Virtual Size: 596.8 MB # # $"0a422c0cdf16 Virtual Size: 596.8 MB Tags: redis # $"9f3000270ba2 Virtual Size: 643.8 MB # $"4b49b0b7aa4c Virtual Size: 643.8 MB # $"1535da87b710 Virtual Size: 660.8 MB Tags: nodejs
Dockerfile • Images are created through Dockerfiles • Simple script
that prepares the system to run the app
Dockerfile FROM eljojo/golang-docker WORKDIR /app RUN git clone
https://github.com/eljojo/shouldidothat.git . RUN go get -d RUN go build -o shouldidothat CMD ["/app/shouldidothat", "-c", "/etc/ shouldidothat/conf.json"]
Container • Instance of Docker Image • Has it’s own
private IP • You can map folders in host to folders in container
Demo
Registries • Like Git but for Docker Images • The
Docker Index will host your public images for free
CoreOS
None
None
None
None
Thanks!
github.com/eljojo/altoids