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
ta1kt0me
October 15, 2015
Programming
470
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
開発環境でdockerを使ってみた
http://connpass.com/event/20561/
ta1kt0me
October 15, 2015
More Decks by ta1kt0me
See All by ta1kt0me
過去の改善から考える オブザーバビリティの必要性
ta1kt0me
0
71
Update Billion Records
ta1kt0me
3
5.5k
Running with version up
ta1kt0me
0
84
omotesandorb_8.pdf
ta1kt0me
1
430
Rubyでのプロファイリング
ta1kt0me
0
130
Other Decks in Programming
See All in Programming
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
490
AWS Step Functions 大規模並列の壁を越える / jaws-sonic-2026-niigata-step-functions
kasacchiful
PRO
1
430
Swift愛好会100回記念 第1回を振り返る
jollyjoester
0
120
高専キャリア LT 発表内容
crysta1221
6
5.6k
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
260
Can LLMs Replicate 4 Years of Compose Migration? Exploring the boundaries of automation with 279 XML files from a real product
makun
0
130
From 6 People Classroom Meetup to 100 People Regional Conference / FOSS4G Hiroshima 2026
furukawayasuto
0
130
不幸な GC
chencmd
0
900
まだ間に合う!今年の夏こそSchemeのマクロ展開器を完全理解!
omasanori
0
650
iOS開発×AI駆動開発 〜最近使って便利だったスキルの話〜
nogu66
0
140
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
110
AIエージェント時代のコードレビューを設計する
nogu66
6
2.6k
Featured
See All Featured
Building AI with AI
inesmontani
PRO
1
1.2k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Designing for Timeless Needs
cassininazir
1
470
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
440
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.7k
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Amusing Abliteration
ianozsvald
1
290
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
Building an army of robots
kneath
306
46k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
202
76k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.8k
Transcript
Start to use Docker development environment
self • Work • Forkwell, Forkwell Jobs • GitHub •
@ta1kt0me • Twitter • @talkto_me
Docker
͖͔͚ͬ • werckerͷmigration࣌ɺΧϥϜ֦ு͢Δͱ Τϥʔ͕ى͖ͨ • Ewokʢdocker based stackʣΛͬͯղܾ
͔ͤͬ͘DockerͷྲྀΕ͖ͨ͠
ͱΓ͋͑ͣͬͯΈ͍ͨ
·ͣ։ൃڥͰ
ͬͨ͜ͱ • docker-toolboxΛΘͳ͍ • docker-compose up͔͠Θͳ͍ • υΩϡϝϯτ
ͬͨ͜ͱ • docker-toolboxΛΘͳ͍ • docker-compose up͔͠Θͳ͍ • υΩϡϝϯτ
docker-toolbox? Announcing Docker Toolbox http://blog.docker.com/2015/08/docker- toolbox/
docker-toolbox? ؆୯Πϯετʔϥʔ • Docker Client • Docker Machine • Docker
Compose • Docker Kitematic • VirtualBox
ͳΜͰΘͳ͍ͷʁ • Docker Quickstart Terminal • ԶͷΒͳ͍Terminal্ཱ͕͕ͪΔ • ݁ߏ߅͋Δ
/Applications/Docker/Docker Quickstart Terminal.app/Contents/ Resources/Scripts/start.sh
start.sh • docker-machineͳ͔ͬͨΒ࡞ͬͯ • docker-machineىಈͯ͠ • eval $(docker-machine env $VM)
machine͕ىಈ͍ͯ͠Εeval͚ͩ͢Εྑ͛͞
Կ͕ඞཁͳͷʁ
खͰೖΕͯΈΔ brew install docker-machine brew install docker-compose
docker-machine dockerͷϗετΛߏங͢Δπʔϧ $ docker-machine create --driver virtualbox default $ eval
$(docker env default)
tips • docker-machine create ͕ऴΘΒͳ͍ • docker-machine ίϚϯυͷ݁Ռ͕͍ • docker/machineͷissueΛݕࡧɺ50͙݅Β͍͋Δ
• ࣗͷ߹ɺ#1684 Ͱղܾ https://github.com/docker/machine/search?p=1&q=docker- machine+create+hang&type=Issues&utf8=%E2%9C%93
ͬͨ͜ͱ • docker-toolboxΘͳ͍ • docker-compose up͔͠Θͳ͍ • υΩϡϝϯτ
docker-compose ෳίϯςφΛཧͯ͠ҰͭͷαʔϏεͱ͠ ͯఏڙ͢Δπʔϧ
docker-compose • ΞϓϦ͕ґଘ͢ΔπʔϧΛίϯςφʹҠߦ • ΞϓϦࣗମͷDockerfileΛ࡞Βͳ͍ • Docker։ൃڥͷબࢶ • ࠷ॳʹ֮͑Δ͜ͱগͳ͍ํָ͕
db: image: mysql ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: root restart:
always redis: image: redis ports: - "6379:6379" restart: always memcached: image: memcached ports: - "11211:11211" restart: always
docker-compose $ docker-compose up -d 1ίϚϯυͰඞཁͳίϯςφ͕શ෦ىಈ ͳΜ͔ศརͦ͏ײ͋Δ
ͬͨ͜ͱ • docker-toolboxΘͳ͍ • docker-compose up͔͠Θͳ͍ • υΩϡϝϯτ
υΩϡϝϯτେࣄ
υΩϡϝϯτ • ಋೖखॱ͚ͩͰྑ͍ͷͰ͔ͬ͠Γॻ͘ • ϦϑΝϨϯεϖʔδͷURLΛࡌͤΔͱ • ͍ͭͷؒʹ͔σϑΥϧτͷಋೖखॱʹ͢Δ
·ͱΊ • খ࢝͘͞ΊΔ • ศརײΞϐʔϧ • ಋ͘
͋Γ͕ͱ͏͍͟͝·ͨ͠