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
Boris Quiroz
July 08, 2016
Technology
0
53
Docker Images Best Practices
We talked about the best practices when working with docker images
Boris Quiroz
July 08, 2016
Tweet
Share
More Decks by Boris Quiroz
See All by Boris Quiroz
Secrets management with Vault
boris
0
56
Software Freedom Day 2015
boris
0
42
Code Driven Infrastructure
boris
0
66
hola mundo
boris
0
62
DevOps Tools: Chef + Vagrant
boris
0
230
Kitchen.CI
boris
0
120
Introducción a HSTS
boris
0
53
Hands-on Lab
boris
0
76
Tech, Method & Philosophy for the cloud
boris
0
52
Other Decks in Technology
See All in Technology
Oracle Base Database Service 技術詳細
oracle4engineer
PRO
7
64k
Асинхронная коммуникация в Go: от понятного к душному. Дима Некрасов, Otello, 2ГИС
lamodatech
0
2.1k
さくらのクラウド開発の裏側
metakoma
PRO
7
2.8k
試作とデモンストレーション / Prototyping and Demonstrations
ks91
PRO
0
120
CARTA HOLDINGS エンジニア向け 採用ピッチ資料 / CARTA-GUIDE-for-Engineers
carta_engineering
0
27k
genspark_presentation.pdf
haruki_uiru
1
250
Cursorを全エンジニアに配布 その先に見据えるAI駆動開発の未来 / 2025-05-13-forkwell-ai-study-1-cursor-at-loglass
itohiro73
2
550
Sleep-time Compute: LLM推論コスト削減のための事前推論
sergicalsix
1
130
MCP でモノが動くとおもしろい/It is interesting when things move with MCP
bitkey
2
510
計測による継続的なCI/CDの改善
sansantech
PRO
1
520
データベース04: SQL (1/3) 単純質問 & 集約演算
trycycle
PRO
0
730
Developer 以外にこそ使って欲しい Amazon Q Developer
mita
0
130
Featured
See All Featured
Six Lessons from altMBA
skipperchong
28
3.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
24
2.7k
Navigating Team Friction
lara
185
15k
The Pragmatic Product Professional
lauravandoore
33
6.6k
Visualization
eitanlees
146
16k
Practical Orchestrator
shlominoach
187
11k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
5
600
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
21k
What’s in a name? Adding method to the madness
productmarketing
PRO
22
3.4k
Why You Should Never Use an ORM
jnunemaker
PRO
56
9.4k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
700
VelocityConf: Rendering Performance Case Studies
addyosmani
329
24k
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