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
210
Recommend: Cacheful Docker Image
Hurry
December 10, 2018
Tweet
Share
More Decks by Hurry
See All by Hurry
Hardening Ⅱ SU がなまら勉強になったはなし
xapima
0
470
Other Decks in Technology
See All in Technology
Webhook best practices for rock solid and resilient deployments
glaforge
1
280
Amazon Bedrock Knowledge Basesチャンキング解説!
aoinoguchi
0
130
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.3k
10Xにおける品質保証活動の全体像と改善 #no_more_wait_for_test
nihonbuson
PRO
2
230
会社紹介資料 / Sansan Company Profile
sansan33
PRO
15
400k
Cosmos World Foundation Model Platform for Physical AI
takmin
0
780
Introduction to Bill One Development Engineer
sansan33
PRO
0
360
Tebiki Engineering Team Deck
tebiki
0
24k
IaaS/SaaS管理における SREの実践 - SRE Kaigi 2026
bbqallstars
4
1.8k
SREが向き合う大規模リアーキテクチャ 〜信頼性とアジリティの両立〜
zepprix
0
440
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
120
ClickHouseはどのように大規模データを活用したAIエージェントを全社展開しているのか
mikimatsumoto
0
210
Featured
See All Featured
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
140
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
SEO for Brand Visibility & Recognition
aleyda
0
4.2k
Balancing Empowerment & Direction
lara
5
880
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
110
How to train your dragon (web standard)
notwaldorf
97
6.5k
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
Leo the Paperboy
mayatellez
4
1.4k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
170
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Λ͍·͠ΐ͏