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
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
seapy
January 26, 2015
Programming
0
83
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
Docker 코리아 캐주얼 토크에서 발표한 자료
seapy
January 26, 2015
Tweet
Share
More Decks by seapy
See All by seapy
Lambda + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년 9월)
seapy
1
560
형태소 분석기를 적용한 elasticsearch 운영
seapy
0
480
Amazon ec2 container service 소개
seapy
0
87
Elasticsearch + fluentd for Log analysis
seapy
3
10k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
49
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
71
ActiveRecord Observers - RORLab Season 3-6
seapy
0
49
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
48
Rails Database Migrations - RORLab Season 3-3
seapy
2
100
Other Decks in Programming
See All in Programming
米国のサイバーセキュリティタイムラインと見る Goの暗号パッケージの進化
tomtwinkle
2
590
どんと来い、データベース信頼性エンジニアリング / Introduction to DBRE
nnaka2992
1
290
RubyとGoでゼロから作る証券システム: 高信頼性が求められるシステムのコードの外側にある設計と運用のリアル
free_world21
0
290
最初からAWS CDKで技術検証してもいいんじゃない?
akihisaikeda
4
150
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
220
ポーリング処理廃止によるイベント駆動アーキテクチャへの移行
seitarof
3
1.1k
Vuetify 3 → 4 何が変わった?差分と移行ポイント10分まとめ
koukimiura
0
140
CSC307 Lecture 15
javiergs
PRO
0
250
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
140
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1.1k
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
340
Codex の「自走力」を高める
yorifuji
0
1.2k
Featured
See All Featured
Why Our Code Smells
bkeepers
PRO
340
58k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
The Limits of Empathy - UXLibs8
cassininazir
1
260
Embracing the Ebb and Flow
colly
88
5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
Code Reviewing Like a Champion
maltzj
528
40k
How to Talk to Developers About Accessibility
jct
2
150
Everyday Curiosity
cassininazir
0
160
Building the Perfect Custom Keyboard
takai
2
710
A Modern Web Designer's Workflow
chriscoyier
698
190k
Transcript
Docker ܻই ந ష : boot2docker ࢎਊद ஶపց ীࢲ ࢤࢿೠ
ؘఠܳ ਬೞӝ
# boot2docker ࢎਊद ஶపցীࢲ ࢤࢿೠ ؘఠܳ ਬೞח ߑߨ * ഐझ
ஹೊఠ /Users ಫ؊ী ݃ * boot2docker о࢚ݠन ղࠗ ಫ؊ী ݃ * ࠅܬ ஶపց ࢎਊ
# ഐझ ஹೊఠ /Users ಫ؊ী ݃ ``` $ docker run
\ -p 5432:5432 \ -v ~/postgresql:/var/lib/postgresql/data \ postgres:9.4 ``` ``` initdb: could not create directory "/var/lib/postgresql/data/global": Permission denied ```
boot2docker ח `bootdocker up` प೯द җ э ഐझ ಫ؊ܳ VM
ਵ۽ ݃ * Users share at /Users * /Users share at /Users * c/Users share at /c/Users * /c/Users share at /c/Users * c:/Users share at /c/Users
boo2docker ীࢲ /Users ܳ docker:staff ҅ਸ ࢎਊ೧ زਵ۽ ݃ ஶపցীࢲ
࢜۽ ҅ ࢤࢿद boot2docker ৬ ܲ UID/GID ܳ оѱػ. ੌ ࢤࢿҗ ઁח ಫ؊ ӂೠਸ 777۽ ߸҃೧ ೧Ѿ ೞ݅ ೞ݂٘ ࢤࢿ VirtualBox ߡӒ۽ (https://www.virtualbox.org/ticket/818) ৈ زೞ ঋח. ҙ۲ ग : https://github.com/boot2docker/boot2docker/issues/581#issuecomm ent-60309186 > ഐझ ؘఠܳ ߄۽ ੍ਸ ҃ ਬਊ > ࠛਃೞѱ ഐझ ੌ ߂ ಫ؊ ӂೠਸ ߸҃೧ঠ ೧ঠ ೠ
# boot2docker о࢚ݠन ղࠗ ಫ؊ী ݃ ``` $ docker run
\ -p 5432:5432 \ -v /var/lib/boot2docker/postgresql:/var/lib/postgresql/data \ postgres:9.4 ``` `boot2docker init` ݺ۸য प೯द 2ѐ о࢚٣झܳ ࢤࢿೞҊ VMী ݃ * /var/lib/docker * /var/lib/boot2docker > о࢚ ٣झח `boot2docker delete` ݺ۸য प೯द ઁ
# ࠅܬ ஶపց ࢎਊ ``` $ docker run --name pg-data
\ -v /var/lib/postgresql/data \ busybox $ docker run \ -p 5432:5432 \ --volumes-from pg-data \ postgres:9.4 ``` > ࠅܬ ஶపց ؘఠח `/var/lib/docker` о ਕ ঋחೠ ਬ
# Ѿۿ DB ؘఠܳ ਬ दఃח ਊب۽ ࠅܬ ஶపց ࢎਊ,
ഐझ ؘఠܳ ੍ӝ ਤೠ ਊب۽ /Users ݃