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
Snowflake女子会#3 Snowpipeの良さを5分で語るよ
lana2548
0
230
複雑性の高いオブジェクト編集に向き合う: プラガブルなReactフォーム設計
righttouch
PRO
0
110
アップデート紹介:AWS Data Transfer Terminal
stknohg
PRO
0
180
組織に自動テストを書く文化を根付かせる戦略(2024冬版) / Building Automated Test Culture 2024 Winter Edition
twada
PRO
13
3.6k
社外コミュニティで学び社内に活かす共に学ぶプロジェクトの実践/backlogworld2024
nishiuma
0
260
MLOps の現場から
asei
6
640
生成AIをより賢く エンジニアのための RAG入門 - Oracle AI Jam Session #20
kutsushitaneko
4
220
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
150
権威ドキュメントで振り返る2024 #年忘れセキュリティ2024
hirotomotaguchi
2
740
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
260
AIのコンプラは何故しんどい?
shujisado
1
190
コンテナセキュリティのためのLandlock入門
nullpo_head
2
320
Featured
See All Featured
Done Done
chrislema
181
16k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Scaling GitHub
holman
458
140k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
17
2.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
247
1.3M
Building Your Own Lightsaber
phodgson
103
6.1k
Being A Developer After 40
akosma
87
590k
Agile that works and the tools we love
rasmusluckow
328
21k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Music & Morning Musume
bryan
46
6.2k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
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