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
Docker Volumes and Networking
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ehazlett
September 30, 2015
Technology
0
53
Docker Volumes and Networking
Presentation from Docker Indianapolis:
http://www.meetup.com/Docker-Indianapolis/events/225508133/
ehazlett
September 30, 2015
Tweet
Share
Other Decks in Technology
See All in Technology
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.4k
ランサムウェア対策としてのpnpm導入のススメ
ishikawa_satoru
0
150
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
610
Introduction to Sansan for Engineers / エンジニア向け会社紹介
sansan33
PRO
6
68k
Greatest Disaster Hits in Web Performance
guaca
0
260
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
960
ブロックテーマ、WordPress でウェブサイトをつくるということ / 2026.02.07 Gifu WordPress Meetup
torounit
0
190
FinTech SREのAWSサービス活用/Leveraging AWS Services in FinTech SRE
maaaato
0
130
OpenShiftでllm-dを動かそう!
jpishikawa
0
110
Red Hat OpenStack Services on OpenShift
tamemiya
0
110
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
320
30万人の同時アクセスに耐えたい!新サービスの盤石なリリースを支える負荷試験 / SRE Kaigi 2026
genda
4
1.3k
Featured
See All Featured
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
130
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
57
50k
We Are The Robots
honzajavorek
0
160
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Build your cross-platform service in a week with App Engine
jlugia
234
18k
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
170
Optimizing for Happiness
mojombo
379
71k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
62
Transcript
Docker Volumes and Networking @ehazlett
Volumes
What are Docker Volumes? • Storage outside of the container
• Data persistence • Can be shared between containers • Support for plugins
Container Storage • Volumes provide storage outside of the container
• For example: • docker volume create --name foo • Inspect: • docker volume inspect foo • Creates a volume with storage path: • /mnt/docker/volumes/foo/_data
Persistence • Volumes are outside of the container • For
example (using the previous example volume): • docker run -ti -v foo:/data alpine ash • Data will persist in this volume when container exits • New container can re-use this persistent volume
Sharing • Data can be shared with volumes • docker
run -ti -v foo:/data alpine ash • docker run -ti -v foo:/data busybox sh
Volume Plugins • Plugins allow custom volume storage • For
example: s3, ebs, key-whiz, vault, etc • Simple interface for writing your own • For example, Vault to share keys between containers
Networking
What’s Coming? • Overlay network • Creates multi-host network across
machines • Containers share network
Networking • Create a network • docker network create -d
overlay prod
Services • Create a service on first host • docker
service publish app1.prod • Create a service on second host • docker service publish app2.prod
Services (cont) • Run a container on first host •
cid=$(docker run -d -ti -p 80:80 nginx) • Attach container to service • docker service attach $cid app1.prod
Services (cont) • Run a container on second host •
cid=$(docker run -d -ti -p 80:80 nginx) • Attach container to service • docker service attach $cid app2.prod
Docker Networking
Thank you! • Vault Volume Driver: https://github.com/calavera/docker-volume-vault • Network: https://github.com/docker/libnetwork/blob/master/docs/overlay.md
• Docker Experimental: https://github.com/docker/docker/tree/master/experimental