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
Recommend: Cacheful Docker Image
Search
Hurry
December 10, 2018
Technology
1
180
Recommend: Cacheful Docker Image
Hurry
December 10, 2018
Tweet
Share
More Decks by Hurry
See All by Hurry
Hardening Ⅱ SU がなまら勉強になったはなし
xapima
0
360
Other Decks in Technology
See All in Technology
Fanstaの1年を大解剖! 一人SREはどこまでできるのか!?
syossan27
2
350
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
150
PHP ユーザのための OpenTelemetry 入門 / phpcon2024-opentelemetry
shin1x1
3
1.5k
効率的な技術組織が作れる!書籍『チームトポロジー』要点まとめ
iwamot
2
160
OCI技術資料 : ファイル・ストレージ 概要
ocise
3
11k
Working as a Server-side Engineer at LY Corporation
lycorp_recruit_jp
0
450
「完全に理解したTalk」完全に理解した
segavvy
1
210
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
630
生成AIのガバナンスの全体像と現実解
fnifni
1
230
Yahoo! ズバトクにおけるフロントエンド開発
lycorptech_jp
PRO
0
110
10年もののバグを退治した話
n_seki
0
110
3年でバックエンドエンジニアが5倍に増えても破綻しなかったアーキテクチャ そして、これから / Software architecture that scales even with a 5x increase in backend engineers in 3 years
euglena1215
11
4k
Featured
See All Featured
Site-Speed That Sticks
csswizardry
2
200
Making the Leap to Tech Lead
cromwellryan
133
9k
We Have a Design System, Now What?
morganepeng
51
7.3k
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
How to Ace a Technical Interview
jacobian
276
23k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
4 Signs Your Business is Dying
shpigford
182
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
KATA
mclloyd
29
14k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Code Review Best Practice
trishagee
65
17k
Fireside Chat
paigeccino
34
3.1k
Transcript
Recommend : Cacheful Docker Image Container SIG Meet-up 2018 Fall
@hurry_41 Kansai University Graduate School
ࣗݾհͱܦҢઆ໌
ॴଐ : ؔେֶ େֶӃ M1 Kyeord : ηΩϡϦςΟ,ϥϯαϜΣΞ,Ϋϥυ… Hurry (ຏঘر)
͜ͷՆ Πϯλʔϯγοϓʹ ߦ͖ͬͯ·ͨ͠
Recruit Internship for Specialist 2018 - ENGINEER -
ࡐ
Docker run ͢Δ͜ͱͳ͘ ImageΛ੬ऑੑݕ͍ࠪͨ͠
→ docker run ࣌ͷFSߏͷ࠶ݱ
DockerΛͬͨ͜ͱͷͳֶ͍ੜ͕ 10ӦۀDocker Image ʹ͍ͭͯௐࠪ͠·ͨ͠
ࠓճͷLT ɿ Πϯλʔϯੜ׆ͷ෭࢈
एഐऀͰ͕͢ɺ ΑΖ͓͘͠Ͷ͕͍͠·͢
վΊ·ͯ͠
Recommend : Cacheful Docker Image Container SIG Meet-up 2018 Fall
͜Μͯͳྺ 1ϲ݄ͷ͔͋ͪΌΜ
RUN ·ͱΊͯ·͔͢ʁ
Docker Image ϨΠϠߏ
RUNͷݮ = ϨΠϠͷݮ
= ΠϝʔδαΠζͷݮ
RUNΛ͚Δͱ redisͷΠϯετʔϧ
ΠϝʔδαΠζɿ244MB ※WORKDIRϨΠϠΛ࡞Γ·ͤΜ
RUNΛ·ͱΊΔͱ redisͷΠϯετʔϧ
ΠϝʔδαΠζɿ131MB
ͳΜͰRUNΛ·ͱΊΕOKʁ
NO
ͨͱ͑
td-agent Ұ෦ൈਮ
td-agent Ұ෦ൈਮ มߋʹͳͬͨͱ͢Δ
td-agent Ұ෦ൈਮ ΩϟογϡࡁΈ
td-agent Ұ෦ൈਮ ͔͜͜ΒBuild ↓
td-agent Ұ෦ൈਮ RUN Λ·ͱΊͯΈΔ
td-agent Ұ෦ൈਮ RUN Λ·ͱΊͯΈΔ มߋʹͳͬͨͱ͢Δ
td-agent Ұ෦ൈਮ ͔͜͜ΒBuild ↓
ΠϝʔδαΠζͲͪΒಉ͡
దʹ·ͱΊ͍ͨ
Ͳ͏ఆ͢Δʁ
docker history?
docker history?
ϨΠϠΛ·ͱΊͯຊʹޮԽ͢Δͷ͔ෆ໌
ώϡʔϦεςΟοΫͳܦݧଇ
ɾύοέʔδΠϯετʔϧͱΩϟογϡআΛ·ͱΊΔ ɾϑΝΠϧͷଐੑมߋ·ͱΊΔ ɾADD,COPY,RUNҎ֎·ͱΊΔඞཁ͕ͳ͍
ؾ͔ͮ͵͏ͪʹଞϨΠϠͷϑΝΠϧΛ ৮ͬͯ͠·ͬͯΔ͜ͱ
ϨΠϠؒͷॏෳϑΝΠϧΛݕ͍ͨ͠
ɾmanifest.json ɾConfig.json ɾlayer.tar Πϝʔδͷ੩తղੳ
ɾॏෳϑΝΠϧ ɿ ্ॻ͖ ɾ.wh.ϑΝΠϧ໊ ɿ আ(ԼҐσΟϨΫτϦআ) ɾ.wh..wh..opq ɿ ԼҐϨΠϠʹͯσΟϨΫτϦΛ ࠶ؼతʹḷΒͳ͍
ϗϫΠτΞτ
None
ৄ͘͠ ɾ Image Specification v1.2.0 ɾmoby/pkg/archive/whiteouts.go
πʔϧΛ࡞Γ·ͨ͠ https://github.com/recruit- tech/duplayer
None
None
ɾ·ͱΊͨࡍͷݮαΠζɾϑΝΠϧΛදࣔ ɾॏෳϑΝΠϧΛαΠζॱʹදࣔ ϨΠϠؒͰ
ػೳతʹ্ҐޓͰ͋Δ diveΛ͍·͠ΐ͏