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
Dcoker使ってますか?
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
tunagohan
December 18, 2017
Technology
330
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Dcoker使ってますか?
Dockerについての説明
tunagohan
December 18, 2017
Other Decks in Technology
See All in Technology
技術的負債から考える、AI時代のエンジニアリング投資 — ビズリーチの技術的負債と向き合った経験から、変更し続けられるソフトウェアを考える/ technical-debt-con2026
visional_engineering_and_design
4
3.3k
AIは推し活である。
kurazuuuuuu
1
850
AI 時代のスタートアップエコシステ厶から考究する技術的負債との向き合い方
m3m0r7
PRO
3
2.3k
AIエージェントの一手は 誰も見ていない - Falco拡張OSS「Prempti」とeBPFで サーバーレス実行基盤を二層防御する
keitah
0
310
なぜ「決定性」が 決定的に重要なのか? Durable Execution 基盤の数理的理解 #serverlessjp / ServerlessDays Tokyo 2026
ytaka23
3
920
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
670
バイブコーディング時代のWebアプリ開発入門~Cloud Runで学ぶセキュアなビルドとデプロイ
waiwai2111
1
140
AIを活用するために決めた "やらないこと" - 価値に注目する / Not betting on AI
soudai
PRO
3
560
すぐできる衛星通信対応 あとは山奥に行くだけ
tatetate55
0
140
Railsのように考える: See through the Master
snoozer05
PRO
4
1.2k
EventBridge に「合流」はない ― サーバーレスのワークフローを育てるということ / No Join in EventBridge
yusukeshimizu
2
270
映像変換サーバーなしで端末内でHLSを生成してライブ配信
hikarusato
0
130
Featured
See All Featured
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
850
Building an army of robots
kneath
307
46k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
410
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Principles of Awesome APIs and How to Build Them.
keavy
128
18k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
460
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
240
WENDY [Excerpt]
tessaabrams
14
39k
Deep Space Network (abreviated)
tonyrice
0
310
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
410
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
550
Transcript
使ってますか? OHJOFFSYJWWPM
初めまして స৬׆ಈதʂ
Docker使った事ない方 質問
Docker使ってみたい! 質問
None
アジェンダ w %PDLFSʹ͍ͭͯ؆୯ͳઆ໌ w %PDLFSͰ؆୯ʹ3BJMTڥΛ࡞Δ w %#มߋΛ͢Δ
Dockerについて
%PDLFSͱʁ • 非常に軽量なコンテナ型の仮想環境 • 導入がとても簡単 • 環境を変えるのがとても楽 • 環境の構築・破棄が大変楽 •
本番環境と同じものをローカルで作れる %PDLFSʹ͍ͭͯ
7. ࠓ·ͰͷԾԽٕज़ͱͷҧ͍ %PDLFSʹ͍ͭͯ ϋʔυΣΞ ϗετOS ήετOS APP APP ϗετܕ 7.XBSF1MBZFS
7JSUVBM#PY hostܕ ԾԽιϑτ
7. 7. ࠓ·ͰͷԾԽٕज़ͱͷҧ͍ %PDLFSʹ͍ͭͯ ϋʔυΣΞ ϋΠύʔόΠβʔ ήετOS ήετOS APP APP
ϋΠύʔόΠβʔܕ &49J )ZQFS7 ҟͳΔ04Ͱ0, ߏͷࣗ༝͕ߴ͍
ίϯςφ ࠓ·ͰͷԾԽٕज़ͱͷҧ͍ %PDLFSʹ͍ͭͯ ϋʔυΣΞ ϗετOS APP ίϯςφܕ %PDLFS ίϯςφ APP
ಉ͡04ͷΈ ڥͷڞ༗ ςΩετϕʔε
難しいことは言わぬ まずは作ってみよ
必要なもの • Dockerfile • docker-compose.yml • Gemfile • Gemfile.lock
Dockerfile
docker-compose.yml
アプリケーションの作成 Θ͔ͣ̐ίϚϯυʂʂʂ
公式通りなので 公式を見てね:) https://docs.docker.com/compose/rails/#connect-the-database
確認
DBをMySQLに 変更する
docker-compose.yml
Gemfile config/database.yml をmysqlの形にする
Θ͔ͣ̐ίϚϯυʂʂʂ ほぼ同じ手順
確認
まとめ • Docker楽なんじゃ〜^ • 開発環境を楽に簡単に作成する事ができる! • 過去の開発環境の残骸を残さず消せるのも魅力的 • ローカルの環境をそのまま本番でも使う事ができる •
DBの切り替えとか、サーバーの切り替えとか一瞬
質問は懇親会で!
ご静聴ありがとう ございました:)
Appendix
ɿϋʔυΣΞ ɿήετ04 δϟϜύϯ
δϟϜΛೖΕΔ ύϯੜΛ࡞Δ ା٧Ί ম͘ ෦ͷͦΕͧΕͷػց ΞϓϦέʔγϣϯ
ジャムパン微妙だわ あんパンも作りたい
ɿϋʔυΣΞ ɿήετ04 δϟϜύϯ ͋Μύϯ
δϟϜΛೖΕΔ ύϯੜΛ࡞Δ ା٧Ί ম͘ ෦ͷͦΕͧΕͷػց ΞϓϦέʔγϣϯ ͋Μ͜ΛೖΕΔ ύϯੜΛ࡞Δ ା٧Ί ম͘
δϟϜύϯ ͋Μύϯ
メモリ(土地)無駄に 食うじゃん…。
コンテナなら…
ɿϗετ04 δϟϜύϯ
δϟϜΛೖΕΔ ύϯੜΛ࡞Δ ା٧Ί ম͘ ෦ͷͦΕͧΕͷػց ΞϓϦέʔγϣϯ ͋Μ͜ΛೖΕΔ