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
570
監視についてみんなに知って欲しいこと/introductory-monitoring
ega4432
0
41
新機能紹介!CloudFront Functions を触ってみた/Tried out the new CloudFront Functions
ega4432
0
290
効率よく成長するために自分の強みを知る方法/How to know your strengths to grow efficiently
ega4432
0
67
サーバーレス初心者による 初めての AWS Lambda/The first time AWS Lambda by serverless beginners
ega4432
0
600
Other Decks in Technology
See All in Technology
アプリエンジニアのためのGraphQL入門.pdf
spycwolf
0
100
TypeScriptの次なる大進化なるか!? 条件型を返り値とする関数の型推論
uhyo
2
1.7k
マルチプロダクトな開発組織で 「開発生産性」に向き合うために試みたこと / Improving Multi-Product Dev Productivity
sugamasao
1
310
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
10
1.1k
開発生産性を上げながらビジネスも30倍成長させてきたチームの姿
kamina_zzz
2
1.7k
Terraform Stacks入門 #HashiTalks
msato
0
360
DynamoDB でスロットリングが発生したとき/when_throttling_occurs_in_dynamodb_short
emiki
0
260
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
690
Oracle Cloud Infrastructureデータベース・クラウド:各バージョンのサポート期間
oracle4engineer
PRO
28
13k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
100
Adopting Jetpack Compose in Your Existing Project - GDG DevFest Bangkok 2024
akexorcist
0
110
BLADE: An Attempt to Automate Penetration Testing Using Autonomous AI Agents
bbrbbq
0
320
Featured
See All Featured
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Making the Leap to Tech Lead
cromwellryan
133
8.9k
Why Our Code Smells
bkeepers
PRO
334
57k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
BBQ
matthewcrist
85
9.3k
The Cost Of JavaScript in 2023
addyosmani
45
6.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
430
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