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
skanehira
September 05, 2019
Programming
0
290
Dockerのプラグインの話
skanehira
September 05, 2019
Tweet
Share
More Decks by skanehira
See All by skanehira
Rustではじめる負荷試験
skanehira
5
1.1k
Wellcome Vim World
skanehira
3
620
VimConf 2023 Tiny
skanehira
1
610
Deno Fest 2023
skanehira
0
180
RustでWasm Runtimeを書いた in WebAssembly night #11
skanehira
0
710
RustでWasm Runtimeを書いた in UV_Study
skanehira
1
440
New Docker Compose
skanehira
5
1.3k
Vim/NeovimでGitHubを使う
skanehira
0
150
作業効率アップ!オススメTUIツール5選
skanehira
2
690
Other Decks in Programming
See All in Programming
ECMAScript、Web標準の型はどう管理されているか / How ECMAScript and Web standards types are maintained
petamoriken
3
370
TypeScriptとGraphQLを活用した変化に強いプロダクト作り
bicstone
4
550
LangGraphでのHuman-in-the-Loopの実装
os1ma
3
550
The Future of Frontend i18n : Intl.MessageFormat
sajikix
1
2.4k
Go Code Generation at newmo / 2024-08-27 #newmo_layerx_go
genkey6
0
510
Swift Concurrencyとレースコンディション
objectiveaudio
1
380
詳解UIWindow
natmark
3
2k
Ruby Parser progress report 2024
yui_knk
2
180
RAGの回答精度評価用のQAデータセットを生成AIに作らせた話
kurahara
0
210
iOSDC 2024 SMBファイル共有をSwiftで実装する
kishikawakatsumi
1
110
オートマトン学習しろ / Do automata learning
makenowjust
3
100
ゲームボーイアドバンスでSwiftを動かそう
k_koheyi
0
510
Featured
See All Featured
How STYLIGHT went responsive
nonsquared
93
5.1k
The Power of CSS Pseudo Elements
geoffreycrofte
71
5.2k
How GitHub Uses GitHub to Build GitHub
holman
472
290k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
22
1.7k
Bash Introduction
62gerente
608
210k
Building Adaptive Systems
keathley
36
2.1k
A better future with KSS
kneath
235
17k
Optimising Largest Contentful Paint
csswizardry
28
2.7k
Making the Leap to Tech Lead
cromwellryan
128
8.8k
Product Roadmaps are Hard
iamctodd
PRO
48
10k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
26
1.9k
The Pragmatic Product Professional
lauravandoore
30
6.2k
Transcript
%PDLFSͷϓϥάΠϯͷ %PDLFS.FFUVQ5PLZP
ࣗݾհ ໊લ ɹΰϦϥ ࣄ ɹ্ಈԂΛकΔ ͖ͳͷ ɹ7JNɺ(Pɺ%PDLFSɺόφφ झຯ ɹ044׆ಈ
ࣗݾհ %PDLFSͷ56*ΫϥΠΞϯτ EPDVJ Λ࡞͍ͬͯ·͢ IUUQTHJUIVCDPNTLBOFIJSBEPDVJ
None
ࠓͷ͓
%PDLFSͷϓϥάΠϯͷͰͳ͍
7JNͷϓϥάΠϯEPDLFSWJN ͷ͓
͜Μͳײ͡ͷͭ
͜Μͳײ͡ͷͭ
ͲΜͳ͜ͱ͕Ͱ͖Δͷʁ EPDLFSDMJͰͰ͖Δ͜ͱશ෦Ͱ͖Δ
ͲΜͳ͜ͱ͕Ͱ͖Δͷʁ w ίϯςφͷ࡞ɺআɺΞλονɺϩά֬ೝ w Πϝʔδͷݕࡧɺऔಘɺআ w ίϯςφͷ$16.&.༻ͷࢹ ओཁػೳҎԼ
σϞ
Έ
7JNͷཪͰ DVSMͱEPDLFSDMJΛ࣮ߦ͍ͯ͠Δ
IUUQTEPDTEPDLFSDPNWFOHJOFEPDLFSPWFSWJFXUIF EPDLFSQMBUGPSN
EPDLFSDMJ 3&45"1*Λୟ͍͍ͯΔ
)551ͳͷͰDVSMͰ ಉ͜͡ͱ͕Ͱ͖Δ
DVSMΛ7JN͔Β࣮ߦ͢Ε 7JNEPDLFSDMJͷΘΓʹͳΕΔ
EPDLFSWJNͷੜ )UUQTHJUIVCDPNTLBOFIJSBEPDLFSWJN
:DockerContainers ! $ curl --unix-socket /var/run/docker.sock \ -X GET \
--dump-header {header_file} \ --output {response_body_file} \ http://localhost/containers/json ͜Μͳײ͡
:Docker run --rm -it gorilla bash ! $ docker run
—rm -it gorilla bash ͜Μͳײ͡
ͱͯγϯϓϧ
ͱ͜ΖͰʜ
DVSMͰͰ͖ΔͳΒ ͳͥEPDLFSDMJ͏ͷʁ
ίϯςφͷΞλον 5$1PS8FC4PDLFUΛ͏
POST /containers/16253994b7c4/attach? stream=1&stdout=1 HTTP/1.1 Upgrade: tcp Connection: Upgrade ίϯςφΞλονͷϦΫΤετ 5$1
IUUQTEPDTEPDLFSDPNFOHJOFBQJWPQFSBUJPO $POUBJOFS"UUBDI
DVSM5$1ͱ8FC4PDLFUʹର Ԡ͍ͯ͠ͳ͍ͷͰແཧ
େਓ͘͠EPDLFSDMJΛ͏
ࠓճಘͨݟ
DVSM͕͋Ε େମEPDLFSͷૢ࡞͕Ͱ͖Δ
CBTI͚ͩͰΠϯλϥΫςΟϒͳ πʔϧ࡞ΕΔʢͣ
ࠓCBTIͰԿ͔࡞Δ͔ʁ
ޤ͏͝ظ
͝ਗ਼ௌ͋Γ͕ͱ͏͍͟·ͨ͠