Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker 101 - Mario Loriedo
Search
SingaSUG
September 09, 2015
Technology
0
200
Docker 101 - Mario Loriedo
SingaSUG
September 09, 2015
Tweet
Share
More Decks by SingaSUG
See All by SingaSUG
Java/Spring and Node.JS side by side
singasug
0
160
Migrating to microservices (Carlos Queiroz)
singasug
0
190
Docker for Java/Spring developers
singasug
0
54
Cloud Foundry and Docker
singasug
0
130
Multi dimensional scaling with CouchBase
singasug
1
88
NoSql presentation from Clarence Tauro
singasug
2
140
Rx Java introduction
singasug
0
86
Spring Websockets
singasug
0
160
migrating from JSP to AngularJS
singasug
0
2.3k
Other Decks in Technology
See All in Technology
OCI で始める!! Red Hat OpenShift / Get Started OpenShift on OCI
oracle4engineer
PRO
1
190
Swift Testingのconfirmationを コードリーディング/Dive into Swift Testing confirmation
laprasdrum
2
260
『GRANBLUE FANTASY Relink』キャラクターの魅力を支えるリグ・シミュレーション制作事例
cygames
0
150
リアルお遍路+SORACOM IoT
ozk009
1
140
AI活用したくてもできなかった不動産SaaSの今とこれから
nealle
0
340
DuckDB雑紹介(1.1対応版)@DuckDB座談会
ktz
6
1.4k
Creative UIs with Compose: DroidKaigi 2024
chrishorner
1
600
突撃! 隣のAmazon Bedrockユーザー 〜YouはどうしてAWSで?〜
minorun365
PRO
3
390
Privacy Sandbox on Android / DroidKaigi 2024
7pairs
1
280
DevRelの始め方
moongift
PRO
2
400
自作Cコンパイラ 8時間の奮闘
soukouki
0
850
Mocking in Rust Applications
taiki45
2
410
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
23
1.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
190
16k
The Invisible Side of Design
smashingmag
296
50k
GraphQLとの向き合い方2022年版
quramy
43
13k
Happy Clients
brianwarren
96
6.6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
8.9k
Web Components: a chance to create the future
zenorocha
309
42k
No one is an island. Learnings from fostering a developers community.
thoeni
18
2.9k
Adopting Sorbet at Scale
ufuk
73
8.9k
Typedesign – Prime Four
hannesfritz
39
2.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Transcript
Docker 101 Introduction to Docker and Lightweight Containers
Hi I'm Mario Italian based in Paris Software Engineer @
Zenika (ex IBMer) Docker official trainer and contributor I've developped sublime docker and doclipser mariolet l0rd
Some well known problems Steve, the (un)believer developer: "It works
on my machine!" Bill, an (im)patient developer: "It took me one week to setup the development environment"
One solution: Traditional Virtual Machines • Consistent environments • Repeatable
wherever you want • Versioning • Automated setup
A better solution: Lightweight Containers
Why Docker? Lightweight containers is a 15yrs old technology. With
Docker it has become: • Easy to use • Widely adopted • Defined a standard
Easy to run a container docker run -ti ubuntu
Easy to run a container What happened here? • Generated
an Linux container • Allocated a new file system • Mounted a read/write layer • Allocated a network interface • Set an IP for it • Run a process inside the container • Captured the output and returned to the client
DockerHub and official images
Easy to create a custom image Dockerfile FROM ubuntu RUN
apt-get install -y curl CMD curl ipinfo.io/ip $ docker build -t mycustomimage . $ docker run mycustomimage
Volumes to persist data This cattle vs pets thing docker
run -ti ubuntu docker run -ti ubuntu Volumes and the state of an application docker run -ti -v ~/data/:/data/ ubuntu
Links to let containers talk securely # Run tomcat in
a container docker run -d --name myserver tomcat # Access to tomcat from another container docker run --link myserver \ fedora \ curl myserver:8080
Multi-containers configurations db: image: postgres web: build: . command: python
manage.py runserver 0.0.0.0:8000 volumes: - .:/code ports: - "8000:8000" links: - db Docker Compose YML file