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
seapy
January 26, 2015
Programming
0
81
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
Docker 코리아 캐주얼 토크에서 발표한 자료
seapy
January 26, 2015
Tweet
Share
More Decks by seapy
See All by seapy
Lambda + S3 썸네일 생성 및 운영 - AWSKRUG 정기 세미나 (2016년 9월)
seapy
1
550
형태소 분석기를 적용한 elasticsearch 운영
seapy
0
480
Amazon ec2 container service 소개
seapy
0
84
Elasticsearch + fluentd for Log analysis
seapy
3
10k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
47
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
69
ActiveRecord Observers - RORLab Season 3-6
seapy
0
47
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
46
Rails Database Migrations - RORLab Season 3-3
seapy
2
99
Other Decks in Programming
See All in Programming
Your Perfect Project Setup for Angular @BASTA! 2025 in Mainz
manfredsteyer
PRO
0
120
ネイティブ製ガントチャートUIを作って学ぶUICollectionViewLayoutの威力
jrsaruo
0
130
iOSDC.pdf
chronos2500
2
650
クラシルを支える技術と組織
rakutek
0
190
Let's Write a Train Tracking Algorithm
twocentstudios
0
220
複雑化したリポジトリをなんとかした話 pipenvからuvによるモノレポ構成への移行
satoshi256kbyte
1
750
私はどうやって技術力を上げたのか
yusukebe
43
17k
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
240
Model Pollution
hschwentner
1
180
monorepo の Go テストをはやくした〜い!~最小の依存解決への道のり~ / faster-testing-of-monorepos
convto
2
310
麻雀点数計算問題生成タスクから学ぶ Single Agentの限界と Agentic Workflowの底力
po3rin
5
2.1k
株式会社 Sun terras カンパニーデック
sunterras
0
200
Featured
See All Featured
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
Designing Experiences People Love
moore
142
24k
A better future with KSS
kneath
239
17k
The Pragmatic Product Professional
lauravandoore
36
6.9k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.1k
RailsConf 2023
tenderlove
30
1.2k
Principles of Awesome APIs and How to Build Them.
keavy
127
17k
Balancing Empowerment & Direction
lara
4
670
For a Future-Friendly Web
brad_frost
180
9.9k
Facilitating Awesome Meetings
lara
56
6.6k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
Building Adaptive Systems
keathley
43
2.8k
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 ݃