Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
Storage-y things
Brian
Goff
Core Engineer @cpuguy83
Container & Image Storage
Agenda
Persistent Storage
Image &
Container
Storage
What storage driver
should I choose?
What driver should I choose?
• AUFS
• BTRFS
• DeviceMapper
• Overlay
• Overlay2 (new in 1.12!!!)
• ZFS
Container & Image S...
Persistent
Storage
“Docker is for stateless
applications!”— Uninformed
How do I do X
with Docker?
Docker does not change
computing fundamentals
Storage is hard!
Share state by
communicating
We never lot anyone’s data – but we
had some data take some very, very
long vacations — Bryan Cantrill
Create a volume
$ docker volume create --name important_data
important_data
$ docker run –d –v important_data:/var/lib/pos...
Create a volume - NFS
$ docker volume create --name important_data --opt type=nfs --opt device=1.2.3.4:/export/path
import...
Create a volume - BTRFS
$ docker volume create --name important_data --opt type=btrfs --opt device=/dev/sdb
important_data...
Create a volume - Gluster
$ docker volume create --name important_data --driver glusterfs
important_data
$ docker run –d –...
Storage-y things
Brian
Goff
Core Engineer @cpuguy83
Docker for Ops: Docker Storage and Volumes Deep Dive and Considerations by Brian Goff
Docker for Ops: Docker Storage and Volumes Deep Dive and Considerations by Brian Goff
Nächste SlideShare
Wird geladen in …5
×

Docker for Ops: Docker Storage and Volumes Deep Dive and Considerations by Brian Goff

4.825 Aufrufe

Veröffentlicht am

Brian is a support engineer at Docker and talks about Container and Image storage and persistent storage.

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

Docker for Ops: Docker Storage and Volumes Deep Dive and Considerations by Brian Goff

  1. 1. Storage-y things Brian Goff Core Engineer @cpuguy83
  2. 2. Container & Image Storage Agenda Persistent Storage
  3. 3. Image & Container Storage
  4. 4. What storage driver should I choose?
  5. 5. What driver should I choose? • AUFS • BTRFS • DeviceMapper • Overlay • Overlay2 (new in 1.12!!!) • ZFS Container & Image Storage
  6. 6. Persistent Storage
  7. 7. “Docker is for stateless applications!”— Uninformed
  8. 8. How do I do X with Docker?
  9. 9. Docker does not change computing fundamentals
  10. 10. Storage is hard!
  11. 11. Share state by communicating
  12. 12. We never lot anyone’s data – but we had some data take some very, very long vacations — Bryan Cantrill
  13. 13. Create a volume $ docker volume create --name important_data 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 $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres
  14. 14. Create a volume - NFS $ docker volume create --name important_data --opt type=nfs --opt device=1.2.3.4:/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 $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres
  15. 15. 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 $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres
  16. 16. 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 $ docker run –d –v important_data:/var/lib/postgresql/data –-name pgdb postgres
  17. 17. Storage-y things Brian Goff Core Engineer @cpuguy83

×