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
51
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
55
Software Freedom Day 2015
boris
0
41
Code Driven Infrastructure
boris
0
65
hola mundo
boris
0
60
DevOps Tools: Chef + Vagrant
boris
0
220
Kitchen.CI
boris
0
110
Introducción a HSTS
boris
0
52
Hands-on Lab
boris
0
75
Tech, Method & Philosophy for the cloud
boris
0
50
Other Decks in Technology
See All in Technology
Engineering Managementのグローバルトレンド #emoasis / Engineering Management Global Trend
kyonmm
PRO
6
910
PostgreSQL Unconference #52 pg_tde
nori_shinoda
0
120
DIってなんだか難しい? 依存という概念を「使う・使われる」 という言葉で整理しよう
akinoriakatsuka
1
730
[CATS]Amazon Bedrock GenUハンズオン座学資料 #2 GenU環境でRAGを体験してみよう
tsukuboshi
0
120
一人QA時代が終わり、 QAチームが立ち上がった話
ma_cho29
0
220
EM初心者として半年間マネジャーをやってみて分かったこと
sansantech
PRO
0
190
AWSにおけるサイバー攻撃の傾向と具体的な対策
yuobayashi
8
790
移行できそうでやりきれなかった 10年超えのシステムを葬るための戦略
ryu955
2
180
ソフトウェア開発におけるインターフェイスという考え方 / PHPerKaigi 2025
k1low
9
3.5k
【Oracle Cloud ウェビナー】VMware環境を短期間でクラウド化!ベネッセ様事例に学ぶ仮想環境クラウド移行のリアル
oracle4engineer
PRO
2
120
EMの仕事、あるいは顧客価値創出のアーキテクト
radiocat
0
120
我々に残された仕事はあるのか?
taishiyade
0
190
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
12
1.4k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7.1k
How STYLIGHT went responsive
nonsquared
99
5.4k
How GitHub (no longer) Works
holman
314
140k
Faster Mobile Websites
deanohume
306
31k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
34
2.9k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
The Power of CSS Pseudo Elements
geoffreycrofte
75
5.7k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
18k
Why Our Code Smells
bkeepers
PRO
336
57k
Product Roadmaps are Hard
iamctodd
PRO
52
11k
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