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
49
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
50
Software Freedom Day 2015
boris
0
39
Code Driven Infrastructure
boris
0
58
hola mundo
boris
0
53
DevOps Tools: Chef + Vagrant
boris
0
220
Kitchen.CI
boris
0
110
Introducción a HSTS
boris
0
50
Hands-on Lab
boris
0
68
Tech, Method & Philosophy for the cloud
boris
0
47
Other Decks in Technology
See All in Technology
競技としてのKaggle、役に立つKaggle
yu4u
6
2.3k
社内アプリで Cloudflare D1を プロダクト運用してみた体験談(Tokyo)
haochenx
0
110
How to do well in consulting–Balkan Ruby 2024
irinanazarova
0
130
非同期推論システムによるコスト削減と信頼性向上
koki_nishihara
1
360
Python と Snowflake はズッ友だょ!~ Snowflake の Python 関連機能をふりかえる ~
__allllllllez__
2
140
生産性向上チームの紹介
cybozuinsideout
PRO
1
910
止まらないLinuxシステムを構築する_高信頼性クラスタ入門
koedoyoshida
1
150
ワールドカフェI /チューターを改良する / World Café I and Improving the Tutors
ks91
PRO
0
150
EMとして2023年度に頑張ったこと / What we did well in FY2023 as a EM
pauli
1
210
VSCodeの拡張機能を作っている話
ebarakazuhiro
1
800
Cypress or Playwright?
rainerhahnekamp
0
170
How to Lead? Testimonial of a Lead Android Engineer
oleur
1
110
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
356
18k
jQuery: Nuts, Bolts and Bling
dougneiner
59
7.2k
StorybookのUI Testing Handbookを読んだ
zakiyama
13
4.6k
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
KATA
mclloyd
16
12k
Writing Fast Ruby
sferik
622
60k
Clear Off the Table
cherdarchuk
85
310k
Building Your Own Lightsaber
phodgson
100
5.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
21
1.4k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Creatively Recalculating Your Daily Design Routine
revolveconf
211
11k
Reflections from 52 weeks, 52 projects
jeffersonlam
345
19k
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