Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
今更_Docker使ってみた
Search
Endo_Hizumi
October 31, 2018
190
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
今更_Docker使ってみた
第131回 PHP勉強会@東京で、docker を使ってみた所感を話してみました。
Endo_Hizumi
October 31, 2018
Transcript
11 slides
今更、Docker使ってみた 遠藤ヒズミ
遠藤ヒズミ(@endo_hizumi)とは ・千葉県在住の27歳の男 ・PHPに愛着を持っている(業務はPython(3か月目)だけど) ・平成仮面ライダーと人型ロボットが好き ・自社に戻ると珍しいと言われるSレアSESエンギニャー(にゃーん ・犬好きです。
None
Dockerの特徴 ・CPUやメモリ・ファイルシステムなど、リソースを隔離して、もう一台マシンがあるよう に見せてくれる(=仮想化)ソフトです。 ・バージョン管理されてるので、過去に戻ることが可能。 ・VirtualBoxやVMware Playerなどのホスト型仮想化と違い、コンテナ型仮想化は、プ ロセスを隔離するだけなので、起動や停止が高速。 ・Linuxコンテナという機能に依存してるので、実はLinuxでしか動かない
図解 ホスト型 コンテナ型 ハイパーバイザ型
図解 ホスト型 コンテナ型 Hyper-V
docker使って何が嬉しい? ・環境構築を省けて、嬉しい。 ・ライブラリの競合や設定の競合を意識しなくて嬉しい。 ・クリーンな環境が高速で用意できるのがうれしい。 ・Dockerfileに設定を記述して、他環境で同じように動作するのが嬉しい! ・Dockerfileに設定を記述して、他環境で同じように動作するのが嬉しい!!
どこがうれしくない?? ・既存のコンテナをいじろうとすると、ハードルがぐんっと上がる・・・ ・同じコンテナでも、挙動が違う時がある。 ・コンテナ内はミニマムが原則らしいので、execしたあと不便。 ・英語圏のコンテナだと、日本語ロケールがなくて日本語が使えないことが。
ほかに嬉しいと思ったポイント IntellJ系のIDE(PyCharm/PhpStorm)だと、Dockerコンテナ内のライブラリを参照設 定できるので、ホスト環境をクリーンなまま使える。 ⇒IDEのために、ライブラリをホスト環境に入れずに済む!
まとめ ・Dockerfileで、環境構築の手間が省けて、嬉しい。 ・動作を確認した環境のまま、他の環境に持っていけるのが嬉しい。 ・IDEで参照設定すれば、ホストをクリーンなまま使えるのがうれしい ・同じコンテナでも実行環境によって挙動が違うことがある。 ・ヒズミさんは犬が好き
ご清聴ありがとうございました!!
More Decks by Endo_Hizumi
See All by Endo_Hizumi
欲しいを叶える個人開発の進め方 / How to Run an Indie Project That Brings Your Ideas to Life
endohizumi
0
1.3k
JSでギャルゲー!~JavaScriptでノベルゲーエンジン作ったった~
endohizumi
1
530
意志の力が9割。アニメから学ぶAI時代のこれから。
endohizumi
1
220
JSでギャルゲーをつくろう!(第3版)
endohizumi
0
340
JSでギャルゲーをつくろう!(第2版)
endohizumi
0
120
JSでギャルゲーをつくろう!
endohizumi
0
580
テレビを飲み込め! Webの嵐!! / Swallow the TV! Web storm! !!
endohizumi
1
140
OK:Googleから始めるスマートホーム生活 / OK: Smart home life starting from Google
endohizumi
0
390
クソアプリで基礎固め / Tutorial in your joke app for Vue.js
endohizumi
0
280
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.7k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Ruling the World: When Life Gets Gamed
codingconduct
0
450
Designing Experiences People Love
moore
143
24k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
Typedesign – Prime Four
hannesfritz
42
3.2k
Leo the Paperboy
mayatellez
11
2.5k
How to Think Like a Performance Engineer
csswizardry
28
3k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
410
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
1
320
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
650