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
310
実践的データ基盤への処方箋輪読会_20220203
hihihiroro
0
700
Kubernetesに入門したい
hihihiroro
47
15k
20170602_sqlstudy
hihihiroro
2
640
Other Decks in Technology
See All in Technology
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
110
LINE Developersプロダクト(LIFF/LINE Login)におけるフロントエンド開発
lycorptech_jp
PRO
0
120
Oracle Cloudの生成AIサービスって実際どこまで使えるの? エンジニア目線で試してみた
minorun365
PRO
4
280
PHPからGoへのマイグレーション for DMMアフィリエイト
yabakokobayashi
1
170
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
2
110
ハイテク休憩
sat
PRO
2
150
alecthomas/kong はいいぞ / kamakura.go#7
fujiwara3
1
300
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
開発生産性向上! 育成を「改善」と捉えるエンジニア育成戦略
shoota
2
360
TSKaigi 2024 の登壇から広がったコミュニティ活動について
tsukuha
0
160
Qiita埋め込み用スライド
naoki_0531
0
5.1k
20241220_S3 tablesの使い方を検証してみた
handy
4
510
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
The Cost Of JavaScript in 2023
addyosmani
45
7k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
32
2.7k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
How GitHub (no longer) Works
holman
311
140k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Designing Experiences People Love
moore
138
23k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
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