Download presentation
Presentation is loading. Please wait.
Published byDonald Watts Modified over 6 years ago
1
Storage-y things Brian Goff Core Engineer @cpuguy83
2
Agenda Container & Image Storage Persistent Storage
3
Image & Container Storage
4
What storage driver should I choose?
5
Container & Image Storage
What driver should I choose? AUFS BTRFS DeviceMapper Overlay Overlay2 (new in 1.12!!!) ZFS
6
Persistent Storage
7
“Docker is for stateless applications!”
— Uninformed
8
How do I do X with Docker?
9
Docker does not change computing fundamentals
Docker moves point of interaction higher up Docker lets you focus more on your application and less on infrastructure
12
Storage is hard!
13
Share state by communicating
Go idiom
14
We never lot anyone’s data – but we had some data take some very, very long vacations
— Bryan Cantrill Go idiom
15
Create a volume $ docker volume create --name important_data
$ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres $ docker rm –f pgdb $ # Oh no! I removed my database!... But I didn’t lose my data
16
Create a volume - NFS $ docker volume create --name important_data --opt type=nfs --opt device= :/export/path important_data $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres $ docker rm –f pgdb $ # Oh no! I removed my database!... But I didn’t lose my data
17
Create a volume - BTRFS $ docker volume create --name important_data --opt type=btrfs --opt device=/dev/sdb important_data $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres $ docker rm –f pgdb $ # Oh no! I removed my database!... But I didn’t lose my data
18
Create a volume - Gluster
$ docker volume create --name important_data --driver glusterfs important_data $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres $ docker rm –f pgdb $ # Oh no! I removed my database!... But I didn’t lose my data
19
Storage-y things Brian Goff Core Engineer @cpuguy83
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.