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
56
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
58
Software Freedom Day 2015
boris
0
45
Code Driven Infrastructure
boris
0
67
hola mundo
boris
0
63
DevOps Tools: Chef + Vagrant
boris
0
230
Kitchen.CI
boris
0
120
Introducción a HSTS
boris
0
53
Hands-on Lab
boris
0
78
Tech, Method & Philosophy for the cloud
boris
0
53
Other Decks in Technology
See All in Technology
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
8.8k
いま注目のAIエージェントを作ってみよう
supermarimobros
0
350
まずはマネコンでちゃちゃっと作ってから、それをCDKにしてみよか。
yamada_r
2
120
今日から始めるAWSセキュリティ対策 3ステップでわかる実践ガイド
yoshidatakeshi1994
0
120
2つのフロントエンドと状態管理
mixi_engineers
PRO
3
120
機械学習を扱うプラットフォーム開発と運用事例
lycorptech_jp
PRO
0
620
新規プロダクトでプロトタイプから正式リリースまでNext.jsで開発したリアル
kawanoriku0
1
200
エンジニアリングマネージャーの成長の道筋とキャリア / Developers Summit 2025 KANSAI
daiksy
3
1k
Generative AI Japan 第一回生成AI実践研究会「AI駆動開発の現在地──ブレイクスルーの鍵を握るのはデータ領域」
shisyu_gaku
0
330
はじめてのOSS開発からみえたGo言語の強み
shibukazu
3
980
Snowflake Intelligenceにはこうやって立ち向かう!クラシルが考えるAI Readyなデータ基盤と活用のためのDataOps
gappy50
0
280
複数サービスを支えるマルチテナント型Batch MLプラットフォーム
lycorptech_jp
PRO
1
910
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.4k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
139
34k
Building Adaptive Systems
keathley
43
2.7k
Stop Working from a Prison Cell
hatefulcrawdad
271
21k
Designing for humans not robots
tammielis
253
25k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
50k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Code Review Best Practice
trishagee
71
19k
Writing Fast Ruby
sferik
628
62k
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