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 超入門/introduction-docker
Search
ega4432
November 04, 2021
Technology
1
130
Docker 超入門/introduction-docker
2021/11/04 の社内 LT での発表資料
ega4432
November 04, 2021
Tweet
Share
More Decks by ega4432
See All by ega4432
サーバーレスな技術を使ってオフィス業務を改善した話/Improvement office operations using Serverless technology
ega4432
0
580
監視についてみんなに知って欲しいこと/introductory-monitoring
ega4432
0
41
新機能紹介!CloudFront Functions を触ってみた/Tried out the new CloudFront Functions
ega4432
0
300
効率よく成長するために自分の強みを知る方法/How to know your strengths to grow efficiently
ega4432
0
69
サーバーレス初心者による 初めての AWS Lambda/The first time AWS Lambda by serverless beginners
ega4432
0
600
Other Decks in Technology
See All in Technology
サービスでLLMを採用したばっかりに振り回され続けたこの一年のあれやこれや
segavvy
2
490
.NET 9 のパフォーマンス改善
nenonaninu
0
1k
Storage Browser for Amazon S3
miu_crescent
1
210
非機能品質を作り込むための実践アーキテクチャ
knih
5
1.5k
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
390
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
190
権威ドキュメントで振り返る2024 #年忘れセキュリティ2024
hirotomotaguchi
2
750
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
210
サイボウズフロントエンドエキスパートチームについて / FrontendExpert Team
cybozuinsideout
PRO
5
38k
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
840
Amazon SageMaker Unified Studio(Preview)、Lakehouse と Amazon S3 Tables
ishikawa_satoru
0
160
Featured
See All Featured
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
RailsConf 2023
tenderlove
29
940
Fireside Chat
paigeccino
34
3.1k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
Making the Leap to Tech Lead
cromwellryan
133
9k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
45
2.2k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Optimising Largest Contentful Paint
csswizardry
33
3k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Transcript
Docker ೖ @ega4432
ຊͷΞδΣϯμ • ࣗݾհ • DockerʁԿͦΕඒຯ͍͠ͷʁ • ैདྷͷԾԽͱͷҧ͍ • Docker ͷجຊػೳ
- Build/Ship/Run - ʹ͍ͭͯ • ·ͱΊ
ࣗݾհ • ͕͑ / @ega4432 • Cloud Engineer • Ԭࡏॅ
• झຯɿےτϨɺςχεɺಡॻɺকعͳͲ • Docker ྺ 2 ~ 3 ɺk8s ษڧதʙ
DockerʁԿͦΕඒຯ͍͠ͷʁ
None
ͳͥ͞Ε͍ͯΔ͔
Q. ͳͥ Docker ͕ඞཁͳͷ͔
A. Ϣʔβʹૉૣ͘ίʔυΛ ಧ͚ΒΕΔΑ͏ʹͳΔ
ैདྷͷ։ൃʹ͓͚Δ՝
ैདྷͷ։ൃʹ͓͚Δ՝ ຊʹಉ͡ڥʁʂ
Docker ͕Ͳ͏ղܾ͢Δ͔
Docker ͕Ͳ͏ղܾ͢Δ͔ ίʔυͱϥΠϒϥϦΛ ύοέʔδϯάͯ͠ ʮίϯςφԽʯ͢Δ
Docker ͕Ͳ͏ղܾ͢Δ͔
͜͜·Ͱͷ·ͱΊ • Docker ͱɺίʔυͱͦͷґଘύοέʔδΛ ʮίϯςφԽʯ͢Δׂ • ։ൃʙຊ൪·Ͱͷڥͷҧ͍Λղফ͠ɺϢʔ βʹରͯ͠ૉૣ͘ՁΛఏڙ͢Δ͜ͱ͕Ͱ͖ Δ
ैདྷͷԾԽͱͷҧ͍
OS ԾԽ ϗετ OS ্ʹෳͷԾ OS Λஔ ग़యɿhttps://qiita.com/etaroid/items/b1024c7d200a75b992fc
ίϯςφԾԽ ϗετ OS ্ Docker Engine Λىಈ͠ ͦͷ্ͷෳͷίϯςφΛىಈ ग़యɿhttps://qiita.com/etaroid/items/b1024c7d200a75b992fc
ίϯςφԾԽͷϝϦοτ • Ϧιʔε͕ܰྔ • ετϨʔδ༻ྔ͕ݮΔ • ىಈ͕࣌ؒૣ͍ • ෳڥͰͷӡ༻ָ͕
Docker ͷجຊػೳ - Build/Ship/Run -
جຊػೳ - Build/Ship/Run - • Build: Πϝʔδͷ࡞ɺߏங • Ship: Πϝʔδͷڞ༗
• Run: ίϯςφͷ࣮ߦ
Build: Πϝʔδͷ࡞ɾߏங • ίϯςφΠϝʔδΛߏங͢ΔϑΣʔζ • ίϯςφͷߏΛςΩετܗࣜͰఆٛͰ͖Δ `Docker fi le` ͱ͍͏ͷ͕͋Δ
Docker fi le͔ΒΠϝʔδͷ࡞ FROM nginx:lates t WORKDIR /usr/share/nginx/htm l COPY
index.html index.htm l RUN apt update && \ apt-get install -y curl
Ship: Πϝʔδͷڞ༗ • ࡞ͬͨίϯςφΠϝʔδΛϨδετϦʹஔ͘ ͜ͱͰอɺόʔδϣϯཧɺڞ༗͕Մೳʹ • ར༻ՄೳͳΠϝʔδ͕ଟ͘ެ։͞Ε͓ͯΓࣗ Ͱ࡞Մೳ
Run: ίϯςφͷ࣮ߦ • ࣮ࡍʹίϯςφΛಈ࡞ͤ͞ΔϑΣʔζ • Docker ͕͑ΔڥͰ͋ΕͲ͜Ͱίϯς φΛىಈՄೳ
·ͱΊ • Docker ɺڥຖͷࠩΛͳ͘͠ɺϢʔβʹ ΑΓૣ͘ίʔυΛಧ͚ΔΑ͏ʹ͢Δׂ • ίϯςφܕԾԽΛ࣮ݱ͢ΔϓϥοτϑΥʔϜ • جຊػೳͱͯ͠ɺεϩʔΨϯͰ͋Δ Build/
Ship/Run ʹ͍ͭͯ
͝ਗ਼ௌ͋Γ͕ͱ͏ ͍͟͝·ͨ͠🙇
ࢀߟจݙ • Docker ࣮ફΨΠυ - ΠϯϓϨεϒοΫε https:// book.impress.co.jp/books/1115101002 • Dockerೖ
-جૅฤ ͍·͔Β࢝ΊΔDockerཧʲ2nd Editionʳ https://www.slideshare.net/zembutsu/ introduction-to-docker-management-and-operations-2nd • Docker/Kubernetes ࣮ફίϯςφ։ൃೖɿॻ੶Ҋʛٕ ज़ධࣾ https://gihyo.jp/book/2018/978-4-297-10033-9