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
COVESA VSSによる車両データモデルの標準化とAWS IoT FleetWiseの活用
osawa
1
290
自作JSエンジンに推しプロポーザルを実装したい!
sajikix
1
180
テストを軸にした生き残り術
kworkdev
PRO
0
210
新規プロダクトでプロトタイプから正式リリースまでNext.jsで開発したリアル
kawanoriku0
1
120
Automating Web Accessibility Testing with AI Agents
maminami373
0
1.3k
今!ソフトウェアエンジニアがハードウェアに手を出すには
mackee
12
4.8k
S3アクセス制御の設計ポイント
tommy0124
3
200
DevIO2025_継続的なサービス開発のための技術的意思決定のポイント / how-to-tech-decision-makaing-devio2025
nologyance
1
400
Autonomous Database - Dedicated 技術詳細 / adb-d_technical_detail_jp
oracle4engineer
PRO
4
10k
slog.Handlerのよくある実装ミス
sakiengineer
4
170
「どこから読む?」コードとカルチャーに最速で馴染むための実践ガイド
zozotech
PRO
0
460
5分でカオスエンジニアリングを分かった気になろう
pandayumi
0
250
Featured
See All Featured
Being A Developer After 40
akosma
90
590k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.1k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
36
2.5k
Designing Experiences People Love
moore
142
24k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.2k
A better future with KSS
kneath
239
17k
It's Worth the Effort
3n
187
28k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
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