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
880
Dockerコマンド
Dockerのコマンドを説明する用に自分の知識をまとめてみた
Hiroaki ONO
November 20, 2017
Tweet
Share
More Decks by Hiroaki ONO
See All by Hiroaki ONO
改正個人情報保護法実務ガイドブック輪読会_20220316
hihihiroro
0
320
実践的データ基盤への処方箋輪読会_20220203
hihihiroro
0
710
Kubernetesに入門したい
hihihiroro
47
15k
20170602_sqlstudy
hihihiroro
2
640
Other Decks in Technology
See All in Technology
2025年に挑戦したいこと
molmolken
0
160
駆け出しリーダーとしての第一歩〜開発チームとの新しい関わり方〜 / Beginning Journey as Team Leader
kaonavi
0
120
自社 200 記事を元に整理した読みやすいテックブログを書くための Tips 集
masakihirose
2
330
データ基盤におけるIaCの重要性とその運用
mtpooh
4
530
Reactフレームワークプロダクトを モバイルアプリにして、もっと便利に。 ユーザに価値を届けよう。/React Framework with Capacitor
rdlabo
0
130
AWSの生成AIサービス Amazon Bedrock入門!(2025年1月版)
minorun365
PRO
7
470
CDKのコードレビューを楽にするパッケージcdk-mentorを作ってみた/cdk-mentor
tomoki10
0
210
AWSマルチアカウント統制環境のすゝめ / 20250115 Mitsutoshi Matsuo
shift_evolve
0
120
メンバーがオーナーシップを発揮しやすいチームづくり
ham0215
2
140
2025年のARグラスの潮流
kotauchisunsun
0
800
生成AIのビジネス活用
seosoft
0
110
dbtを中心にして組織のアジリティとガバナンスのトレードオンを考えてみた
gappy50
0
280
Featured
See All Featured
Optimizing for Happiness
mojombo
376
70k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Building Better People: How to give real-time feedback that sticks.
wjessup
366
19k
Automating Front-end Workflow
addyosmani
1366
200k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
Building Flexible Design Systems
yeseniaperezcruz
328
38k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
Product Roadmaps are Hard
iamctodd
PRO
50
11k
A designer walks into a library…
pauljervisheath
205
24k
Bash Introduction
62gerente
610
210k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
Git: the NoSQL Database
bkeepers
PRO
427
64k
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