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
560
監視についてみんなに知って欲しいこと/introductory-monitoring
ega4432
0
41
新機能紹介!CloudFront Functions を触ってみた/Tried out the new CloudFront Functions
ega4432
0
280
効率よく成長するために自分の強みを知る方法/How to know your strengths to grow efficiently
ega4432
0
66
サーバーレス初心者による 初めての AWS Lambda/The first time AWS Lambda by serverless beginners
ega4432
0
600
Other Decks in Technology
See All in Technology
リスクから学ぶKubernetesコンテナセキュリティ/k8s-risk-and-security
mochizuki875
1
260
映像・音声伝送システム
jtes
0
200
Oracle GoldenGate 23ai 導入Tips
oracle4engineer
PRO
1
200
エムスリー全チーム紹介資料 / Introduction of M3 All Teams
m3_engineering
1
210
FastAPIでのasync defとdefの使い分け
takashi1029
6
1.8k
Tracking down sources of kernel errors with retsnoop
ennael
PRO
0
140
LINEヤフー新卒採用 コーディングテスト解説 アルゴリズム問題編
lycorp_recruit_jp
0
12k
ITエンジニアとして知っておいてほしい、電子メールという大きな穴
logica0419
2
300
Create Inquiry via Bedrock / 生成 AI で問い合わせ品質は変わるのか?思いついてぱっと作ったものを供養してみる
kazzpapa3
1
200
Authenticator のエミュレーションによる パスキーのログインテスト/nikkei-tech-talk-25
nikkei_engineer_recruiting
0
140
Consoles, printk, Nested-NMIs_ Oh my!
ennael
PRO
0
160
kube-vipとkube-proxy置き換えCiliumを積んだ究極のK3sクラスタを建てる
logica0419
4
190
Featured
See All Featured
Building an army of robots
kneath
302
42k
RailsConf 2023
tenderlove
28
840
Producing Creativity
orderedlist
PRO
341
39k
The MySQL Ecosystem @ GitHub 2015
samlambert
250
12k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Making the Leap to Tech Lead
cromwellryan
130
8.8k
Infographics Made Easy
chrislema
239
18k
Embracing the Ebb and Flow
colly
83
4.4k
[RailsConf 2023] Rails as a piece of cake
palkan
49
4.7k
Clear Off the Table
cherdarchuk
91
320k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Creatively Recalculating Your Daily Design Routine
revolveconf
217
12k
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