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
79
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
460
Amazon ec2 container service 소개
seapy
0
83
Elasticsearch + fluentd for Log analysis
seapy
3
9.9k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
45
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
64
ActiveRecord Observers - RORLab Season 3-6
seapy
0
45
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
42
Rails Database Migrations - RORLab Season 3-3
seapy
2
97
Other Decks in Programming
See All in Programming
ESLintプラグインを使用してCDKのセオリーを適用する
yamanashi_ren01
2
270
いりゃあせ、PHPカンファレンス名古屋2025 / Welcome to PHP Conference Nagoya 2025
ttskch
1
230
CNCF Project の作者が考えている OSS の運営
utam0k
5
550
Beyond ORM
77web
11
1.6k
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.8k
Flatt Security XSS Challenge 解答・解説
flatt_security
0
790
CloudNativePGがCNCF Sandboxプロジェクトになったぞ! 〜CloudNativePGの仕組みの紹介〜
nnaka2992
0
140
テストコード書いてみませんか?
onopon
2
360
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
ErdMap: Thinking about a map for Rails applications
makicamel
1
840
QA環境で誰でも自由自在に現在時刻を操って検証できるようにした話
kalibora
1
150
毎日13時間もかかるバッチ処理をたった3日で60%短縮するためにやったこと
sho_ssk_
1
660
Featured
See All Featured
GraphQLの誤解/rethinking-graphql
sonatard
68
10k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Navigating Team Friction
lara
183
15k
The Invisible Side of Design
smashingmag
299
50k
Producing Creativity
orderedlist
PRO
343
39k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
Visualization
eitanlees
146
15k
The Pragmatic Product Professional
lauravandoore
32
6.4k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Docker and Python
trallard
43
3.2k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5.1k
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 ݃