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 Images Best Practices
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Boris Quiroz
July 08, 2016
Technology
58
0
Share
Docker Images Best Practices
We talked about the best practices when working with docker images
Boris Quiroz
July 08, 2016
More Decks by Boris Quiroz
See All by Boris Quiroz
Secrets management with Vault
boris
0
61
Software Freedom Day 2015
boris
0
47
Code Driven Infrastructure
boris
0
74
hola mundo
boris
0
67
DevOps Tools: Chef + Vagrant
boris
0
230
Kitchen.CI
boris
0
120
Introducción a HSTS
boris
0
57
Hands-on Lab
boris
0
83
Tech, Method & Philosophy for the cloud
boris
0
59
Other Decks in Technology
See All in Technology
#jawsugyokohama 100 LT11, "My AWS Journey 2011-2026 - kwntravel"
shinichirokawano
0
340
60分で学ぶ最新Webフロントエンド
mizdra
PRO
34
18k
研究開発部メンバーの働き⽅ / Sansan R&D Profile
sansan33
PRO
4
23k
昔はシンプルだった_AmazonS3
kawaji_scratch
0
320
名刺メーカーDevグループ 紹介資料
sansan33
PRO
0
1.1k
え!?初参加で 300冊以上 も頒布!? これは大成功!そのはずなのに わいの財布は 赤字 の件
hellohazime
0
160
実践ハーネスエンジニアリング:TAKTで実現するAIエージェント制御 / Practical Harness Engineering: AI Agent Control Enabled by TAKT
nrslib
9
4.2k
LLM時代の検索アーキテクチャと技術的意思決定
shibuiwilliam
3
1k
Code Interpreter で、AIに安全に コードを書かせる。
yokomachi
0
7k
社内エンジニア勉強会の醍醐味と苦しみ/tamadev
nishiuma
0
150
AI時代 に増える データ活用先
takahal
0
190
Master Dataグループ紹介資料
sansan33
PRO
1
4.6k
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
170
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.6k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.8k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.4k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Un-Boring Meetings
codingconduct
0
270
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
200
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.4k
We Have a Design System, Now What?
morganepeng
55
8.1k
Transcript
Docker Images Best Practices Boris Quiroz - Geek Lunch 0x0
Docker: - Build once, run anywhere - Configure once, run
anything
Containers son a las VMs lo que los threads son
a los procesos. Powerful chroot.
bootfs (lxc, btrfs) rootfs (ubuntu) Imagen
bootfs (lxc, btrfs) rootfs (ubuntu) Imagen Container (rw)
Buenas prácticas Usar cache: FROM alpine:edge Usar tags: docker build
-t boris/parrots . Exponer puertos: EXPOSE 1313 CMD || ENTRYPOINT: ENTRYPOINT ["/root/terminal-parrot/parrot"]
None
None
Size
Imagenes grandes se demoran más en bajar. Imágenes grandes usan
más espacio. Componentes innecesarios aumentan el tamaño. En debian: --no-install-recommends y rm -rf /var/lib/apt/lists/* En Alpine: rm -rf /var/cache/apk/* Busybox Alpine Node PHP Ubuntu 6.1 5.9 1:21 50.3 23.9 Busybox Alpine Node PHP Ubuntu 1.093 MB 4.799 MB 660.7 MB 490.3 MB 132.8 MB
Demo