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
150
Rx Java introduction
singasug
0
88
Spring Websockets
singasug
0
160
migrating from JSP to AngularJS
singasug
0
2.3k
Other Decks in Technology
See All in Technology
ISUCONに強くなるかもしれない日々の過ごしかた/Findy ISUCON 2024-11-14
fujiwara3
8
880
DynamoDB でスロットリングが発生したとき_大盛りver/when_throttling_occurs_in_dynamodb_long
emiki
1
440
アジャイルでの品質の進化 Agile in Motion vol.1/20241118 Hiroyuki Sato
shift_evolve
0
180
飲食店データの分析事例とそれを支えるデータ基盤
kimujun
0
180
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
700
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
日経電子版のStoreKit2フルリニューアル
shimastripe
1
140
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
AGIについてChatGPTに聞いてみた
blueb
0
130
Terraform Stacks入門 #HashiTalks
msato
0
360
SREが投資するAIOps ~ペアーズにおけるLLM for Developerへの取り組み~
takumiogawa
1
450
Featured
See All Featured
10 Git Anti Patterns You Should be Aware of
lemiorhan
655
59k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Producing Creativity
orderedlist
PRO
341
39k
A Tale of Four Properties
chriscoyier
156
23k
Optimizing for Happiness
mojombo
376
70k
Making the Leap to Tech Lead
cromwellryan
133
8.9k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
The Invisible Side of Design
smashingmag
298
50k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Site-Speed That Sticks
csswizardry
0
28
Speed Design
sergeychernyshev
25
620
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