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コマンド
Search
Hiroaki ONO
November 20, 2017
Technology
2
870
Dockerコマンド
Dockerのコマンドを説明する用に自分の知識をまとめてみた
Hiroaki ONO
November 20, 2017
Tweet
Share
More Decks by Hiroaki ONO
See All by Hiroaki ONO
改正個人情報保護法実務ガイドブック輪読会_20220316
hihihiroro
0
300
実践的データ基盤への処方箋輪読会_20220203
hihihiroro
0
690
Kubernetesに入門したい
hihihiroro
47
15k
20170602_sqlstudy
hihihiroro
2
630
Other Decks in Technology
See All in Technology
障害対応指揮の意思決定と情報共有における価値観 / Waroom Meetup #2
arthur1
5
480
SREによる隣接領域への越境とその先の信頼性
shonansurvivors
2
520
OCI 運用監視サービス 概要
oracle4engineer
PRO
0
4.8k
Application Development WG Intro at AppDeveloperCon
salaboy
0
190
Terraform未経験の御様に対してどの ように導⼊を進めていったか
tkikuchi
2
450
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
760
Why App Signing Matters for Your Android Apps - Android Bangkok Conference 2024
akexorcist
0
130
Lambda10周年!Lambdaは何をもたらしたか
smt7174
2
110
ExaDB-D dbaascli で出来ること
oracle4engineer
PRO
0
3.9k
マルチモーダル / AI Agent / LLMOps 3つの技術トレンドで理解するLLMの今後の展望
hirosatogamo
37
12k
安心してください、日本語使えますよ―Ubuntu日本語Remix提供休止に寄せて― 2024-11-17
nobutomurata
1
1k
いざ、BSC討伐の旅
nikinusu
2
780
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
5 minutes of I Can Smell Your CMS
philhawksworth
202
19k
Site-Speed That Sticks
csswizardry
0
27
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
Keith and Marios Guide to Fast Websites
keithpitt
409
22k
Teambox: Starting and Learning
jrom
133
8.8k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.8k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Transcript
%PDLFSίϚϯυ v1.0 @hihihiroro
%PDLFSͬͯ·͔͢ʁ
ίϚϯυଟ͘ͳ͍Ͱ͔͢ʁ
https://docs.docker.com/engine/reference/commandline/docker/#child-commands
https://docs.docker.com/engine/reference/commandline/docker/#child-commands ීஈ͏ίϚϯυ ͜Μͳʹඞཁͳ͍ʢࢲݟʣ
͜ͷεϥΠυͷత w͏͜ͱͷଟ͍%PDLFSίϚϯυΛ͍֮͑ͨ wΑ͘͏ίϚϯυʹߜΔ wίϚϯυʹΑΔભҠΛཧղ͢Δ wֆͰ֮͑Δ
ର w%PDLFSͷ͜ͱΛগͬͯ͠Δ wॳݟͷਓ͝ΊΜͳ͍͞ w୯ޠࡉ͔͍આ໌ল͍͍ͯ·͢ wΦϓγϣϯʹ͍ͭͯجຊઆ໌͠·ͤΜ wৄ͍͜͠ͱΛΓ͚ͨΕެࣜυΩϡϝϯτ
ͯͳΘ͚Ͱਤղ
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO ίϯςφଆૢ࡞ Πϝʔδଆૢ࡞
Ҏ্ɻ
͔͜͜ΒίϚϯυͷઆ໌
Πϝʔδଆૢ࡞༻
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO ࡞ ϨδετϦͱͷ ΓͱΓ Πϝʔδૢ࡞͋Ε͜Ε Πϝʔδ®UBS
Πϝʔδଆ w JNBHFTʢΠϝʔδҰཡදࣔʣ w UBHʢΠϝʔδͷλά͚ʣ w IJTUPSZJOTQFDUʢߋ৽༰ɾৄࡉใʣ w SVOʢίϯςφͷ࣮ߦʣ w
SNJʢΠϝʔδআʣ w CVJMEʢΠϝʔδ࡞ʣ w TBWFMPBEʢΠϝʔδͷϑΝΠϧग़ྗɾೖྗʣ w QVMMQVTIʢΠϝʔδͷμϯϩʔυɾొʣ
Πϝʔδૢ࡞͋Ε͜Ε
EPDLFSJNBHFT ΠϝʔδͷҰཡΛදࣔ
EPDLFSUBH ΠϝʔδʹλάΛ͚Δ
EPDLFSIJTUPSZJOTQFDU IJTUPSZɿΠϝʔδͷߏஙཤྺΛදࣔ JOTQFDUɿΠϝʔδʹؔ͢ΔৄࡉใΛ+40/ܗࣜͰදࣔ
EPDLFSSVO Πϝʔδ͔Βίϯςφͷىಈ
EPDLFSSNJ Πϝʔδͷআ
Πϝʔδ࡞
EPDLFSCVJME %PDLFSpMF͔ΒΠϝʔδΛ࡞
Πϝʔδ®ϑΝΠϧ
EPDLFSTBWFMPBE TBWFɿΠϝʔδΛUBSΞʔΧΠϒʹอଘ MPBEɿUBSΞʔΧΠϒ͔45%*/͔ΒΠϝʔδΛಡΈࠐΉ TBWF MPBE
ϨδετϦ͋Ε͜Ε
EPDLFSQVMMQVTI QVMMɿSFHJTUSZ͔ΒΠϝʔδͷऔಘ QVTIɿSFHJTUSZΠϝʔδͷొ QVMM QVTI
EPDLFSQVMMQVTI QVMMɿSFHJTUSZ͔ΒΠϝʔδͷऔಘ QVTIɿSFHJTUSZΠϝʔδͷొ QVMM QVTI EPDLFSMPHJO SFHJTUSZͷϩάΠϯ
ίϯςφଆૢ࡞༻
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO ఀࢭ আ Ұ࣌ఀࢭ ίϯςφૢ࡞͋Ε͜Ε ίϯςφ®UBS ίϯςφ෦͋Ε͜Ε
ίϯςφଆ w QTʢίϯςφҰཡදࣔʣ w MPHTEJGGJOTQFDUʢΠϝʔδͷμϯϩʔυɾొʣ w DPNNJUʢߋ৽༰ɾৄࡉใʣ w FYQPSUJNQPSUʢΠϝʔδͷϑΝΠϧग़ྗɾೖྗʣ w
QBVTFVOQBVTFʢΠϝʔδͷλά͚ʣ w TUPQTUBSULJMMʢΠϝʔδ࡞ʣ w FYFDBUUBDIʢΠϝʔδআʣ w SNʢʣ
ίϯςφૢ࡞͋Ε͜Ε
EPDLFSQT ίϯςφͷҰཡΛදࣔ BΦϓγϣϯͰશͯͷίϯςφΛදࣔ GΦϓγϣϯͰϑΟϧλ
EPDLFSMPHT ίϯςφͷϩάΛऔಘ ग़ྗ͞Εͨϩάͯ͢Λදࣔ ϩάͷग़ྗΛϑΥϩʔ
EPDLFSEJGG ίϯςφͷϑΝΠϧγεςϜʹର͢Δมߋͷදࣔ ίϯςφ෦ͰUFYUUYUΛ࡞ $USMʴ1ˠ$USMʴ2Ͱίϯςφ͔Βग़ ίϯςφ෦ͰEPDLFSFOWΛআ "ɿՃ %ɿআ $ɿมߋ
EPDLFSJOTQFDU ίϯςφʹؔ͢ΔৄࡉใΛ+40/ܗࣜͰදࣔ
EPDLFSDPNNJU ίϯςφ͔Β৽͍͠Πϝʔδͷ࡞
ίϯςφ®ϑΝΠϧ
EPDLFSFYQPSUJNQPSU FYQPSUɿίϯςφͷ༰ΛUBSΞʔΧΠϒʹอଘ JNQPSUɿUBSΞʔΧΠϒ͔ΒۭͷΠϝʔδΛ࡞ FYQPSU JNQPSU
ίϯςφҰ࣌ఀࢭ
EPDLFSQBVTFVOQBVTF QBVTFɿίϯςφͷશͯͷϓϩηεΛҰ࣌ఀࢭ VOQBVTFɿίϯςφͷશͯͷϓϩηεͷҰ࣌ఀࢭΛղআ QBVTF VOQBVTF
ίϯςφఀࢭ
EPDLFSTUPQTUBSULJMM TUPQɿ࣮ߦதͷίϯςφʹ4*(5&3.Λૹ৴͠ɺҰఆظؒޙʹ4*(,*--Λૹ৴ LJMMɿ࣮ߦதͷίϯςφΛ4*(,*--͔ࢦఆͨ͠γάφϧͰఀࢭ TUBSUɿఀࢭ͍ͯ͠ΔίϯςφΛىಈ͢Δ TUPQ TUBSU LJMM
ίϯςφ෦͋Ε͜Ε
EPDLFSFYFD ࣮ߦதͷίϯςφͰՃίϚϯυΛ࣮ߦ FYFDͰ࣮ߦ
EPDLFSBUUBDI ࣮ߦதͷίϯςφͰ্ཱ͕͍ͪͬͯΔ 1*%ͷϓϩηεʹରͯ͠ඪ४ೖग़ྗΛଓ͢Δ $USM DͰࢭ·Βͳ͍ $USM DͰࢭ·Δ ٙࣅλʔϛφϧͷׂ
ίϯςφআ
EPDLFSSN ίϯςφͷআ ఀࢭͨ͠ίϯςφআͰ͖Δ ىಈதίϯςφআͰ͖ͳ͍ GΦϓγϣϯͰআͰ͖Δ
SNJ EFMFUFE TUPQQFE QVTI MPHT EJGG JOTQFDU SN QVMM TUBSU
FYFD BUUBDI TUPQLJMM QBVTF QBVTFE QT CVJME VOQBVTF FYQPSU SVO DPNNJU JNQPSU TBWF JNBHFT IJTUPSZ JOTQFDU SVOOJOH UBHT MPBE IUUQTHJUIVCDPNEPDLFSEJTUSJCVUJPO EFTJHOFECZGSPN'MBUJDPO
2JJUBʹ͋ΔΑ IUUQTRJJUBDPNIJIJIJSPSPJUFNT EEBEDBEB
BQQFOEJY
Dockerとは wίϯςφΛɺ࣮ߦ͢ΔͨΊͷϓϥοτϑΥʔϜ w ࣮ߦʹඞཁͳͯ͢ΛϑΝΠϧγεςϜԽ w %PDLFS͕ಈ͘ڥͳΒಈ࡞Λอূ w ϓϩηεͱ্ཱ͕ͯͪ͠ΔͷͰܰྔ
コンテナ wִ͞Ε͍ͯΔܰྔ7.ʢ࣮ଶϓϩηεʣ w/BNF4QBDF wϚϯτɺϓϩηεɺϢʔβͳͲ໊લۭؒ͝ͱʹࣝผɾӅณ͢Δػೳ wDHSPVQ wϓϩηεʹରͯ͠$16ϝϞϦͳͲͷϦιʔεʹ੍ݶΛ͔͚Δ wDISPPU wϧʔτσΟϨΫτϦΛҙͷಛఆͷσΟϨΫτϦʹมߋͰ͖Δ wOFUOT wϗεταʔόʹԾతϒϦοδͱԾ/*$͔ΒͳΔԾωοτϫʔΫΛߏங
レイヤ w%PDLFSΠϝʔδ w֤ϨΠϠࢠؔ wΠϝʔδϨΠϠ 3FBE0OMZ wίϯςφΠϝʔδʹ ৽͍͠ϨΠϠΛՃ ΠϝʔδϨΠϠ ίϯςφϨΠϠ IUUQTEPDTEPDLFSDPNFOHJOFVTFSHVJEF
TUPSBHFESJWFSJNBHFTBOEDPOUBJOFSTDPOUBJOFS BOEMBZFST