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
88
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
boot2docker 사용시 컨테이너에서 생성한 데이터를 유지하기
Docker 코리아 캐주얼 토크에서 발표한 자료
seapy
January 26, 2015
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
94
Elasticsearch + fluentd for Log analysis
seapy
3
10k
ActiveRecord Associations(2) - RORLab Season 3-8
seapy
0
53
ActiveRecord Associations(1) - RORLab Season 3-7
seapy
0
74
ActiveRecord Observers - RORLab Season 3-6
seapy
0
51
ActiveRecord Callbacks - RORLab Season 3-5
seapy
0
50
Rails Database Migrations - RORLab Season 3-3
seapy
2
110
Other Decks in Programming
See All in Programming
その節約、円になってますか?
isamumumu
1
700
仕様駆動開発へのトライを機に チームに適合する手法を模索し続けている話
freee
PRO
0
450
AIが無かった頃の素敵な出会いの話
codmoninc
1
390
Apache Hive: そしてCloud Native Lakehouseへ
okumin
1
210
霧の中の代数的エフェクト
funnyycat
1
490
Android CLI
fornewid
0
210
<title><a id="</title>君はこのHTMLをパースできるか"></a></title> #雑LT_study
pizzacat83
0
140
Claude Code全社展開のためにやったことn選~プラグイン302個・コミッター271人を支えるために~
kenchan
5
1.4k
5分で問診!Composer セキュリティ健康診断
codmoninc
0
910
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
210
壊れたパーサから始める関数型設計と構成的なパーサ #fp_matsuri
raiga0310
2
450
AI時代に設計が 最大の生産性レバーになる 意図駆動開発とデータを消さない設計|Don't Delete Your Data or Your Intent — Design as the Deepest Lever in the AI Era
tomohisa
1
730
Featured
See All Featured
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
460
Test your architecture with Archunit
thirion
1
2.3k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
430
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
2.9k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.6k
What's in a price? How to price your products and services
michaelherold
247
13k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.7k
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
170
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
410
Highjacked: Video Game Concept Design
rkendrick25
PRO
1
430
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.7k
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 ݃