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
ehazlett
September 30, 2015
Technology
0
51
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
Claude Code に プロジェクト管理やらせたみた
unson
7
4.8k
United airlines®️ USA Contact Numbers: Complete 2025 Support Guide
unitedflyhelp
0
330
[ JAWS-UG千葉支部 x 彩の国埼玉支部 ]ムダ遣い卒業!FinOpsで始めるAWSコスト最適化の第一歩
sh_fk2
2
150
モニタリング統一への道のり - 分散モニタリングツール統合のためのオブザーバビリティプロジェクト
niftycorp
PRO
1
220
成長し続けるアプリのためのテストと設計の関係、そして意思決定の記録。
sansantech
PRO
0
140
TLSから見るSREの未来
atpons
2
190
SREのためのeBPF活用ステップアップガイド
egmc
1
780
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
980
2025-07-06 QGIS初級ハンズオン「はじめてのQGIS」
kou_kita
0
180
Delegating the chores of authenticating users to Keycloak
ahus1
0
170
VGGT: Visual Geometry Grounded Transformer
peisuke
1
550
推し書籍📚 / Books and a QA Engineer
ak1210
0
120
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
72
4.9k
Designing for humans not robots
tammielis
253
25k
Producing Creativity
orderedlist
PRO
346
40k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
138
34k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Making Projects Easy
brettharned
116
6.3k
Into the Great Unknown - MozCon
thekraken
40
1.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.4k
How to train your dragon (web standard)
notwaldorf
96
6.1k
Gamification - CAS2011
davidbonilla
81
5.4k
Reflections from 52 weeks, 52 projects
jeffersonlam
351
21k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
30
2.1k
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