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
Dcoker使ってますか?
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
tunagohan
December 18, 2017
Technology
1
330
Dcoker使ってますか?
Dockerについての説明
tunagohan
December 18, 2017
Tweet
Share
Other Decks in Technology
See All in Technology
ブロックテーマでサイトをリニューアルした話 / 2026-01-31 Kansai WordPress Meetup
torounit
0
470
AIと新時代を切り拓く。これからのSREとメルカリIBISの挑戦
0gm
1
2.7k
Cosmos World Foundation Model Platform for Physical AI
takmin
0
930
ブロックテーマ、WordPress でウェブサイトをつくるということ / 2026.02.07 Gifu WordPress Meetup
torounit
0
190
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
日本の85%が使う公共SaaSは、どう育ったのか
taketakekaho
1
230
[CV勉強会@関東 World Model 読み会] Orbis: Overcoming Challenges of Long-Horizon Prediction in Driving World Models (Mousakhan+, NeurIPS 2025)
abemii
0
140
Bill One急成長の舞台裏 開発組織が直面した失敗と教訓
sansantech
PRO
2
380
Codex 5.3 と Opus 4.6 にコーポレートサイトを作らせてみた / Codex 5.3 vs Opus 4.6
ama_ch
0
180
AI駆動開発を事業のコアに置く
tasukuonizawa
1
270
M&A 後の統合をどう進めるか ─ ナレッジワーク × Poetics が実践した組織とシステムの融合
kworkdev
PRO
1
470
フルカイテン株式会社 エンジニア向け採用資料
fullkaiten
0
10k
Featured
See All Featured
Prompt Engineering for Job Search
mfonobong
0
160
Principles of Awesome APIs and How to Build Them.
keavy
128
17k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Raft: Consensus for Rubyists
vanstee
141
7.3k
Utilizing Notion as your number one productivity tool
mfonobong
3
220
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Writing Fast Ruby
sferik
630
62k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
97
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
130
エンジニアに許された特別な時間の終わり
watany
106
230k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
67
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 δϟϜύϯ
δϟϜΛೖΕΔ ύϯੜΛ࡞Δ ା٧Ί ম͘ ෦ͷͦΕͧΕͷػց ΞϓϦέʔγϣϯ ͋Μ͜ΛೖΕΔ