Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Everything you need to know
about Docker and storage.
Ryan
Wallner
Technical Evangelist,
ClusterHQ
Key Concepts
Stageful vs Stateless
Volumes
Plugins
Agenda
Volumes & UCP
UCP + Volumes
External Volumes
VolumeHub
Demo
Crea...
Key Concepts
Docker & Storage
Docker + Storage
"Stateful" Container
• Secrets - public/private keys,
password, etc
• Databases - databases, sharded,
clustered.
• Logs - ...
Docker volumes help store state from
the application to locations outside the
docker image. They are logical
primitives fo...
Enable external storage management
such as shared-storage for volumes.
• Data is external to engine host.
• Enables HA for...
Example
$ docker run --name my-container 
--volume-driver flocker 
-v vol:/data busybox
my-container
$ docker inspect -f “...
Container Movement
Volumes & UCP
Docker & Storage
Volumes in UCP
• Create, Delete, Use from UI
• Takes advantage of volume
drivers.
• Limited view into volume
management
VolumeHub
• Clear visibility for volume
management.
• Current status of volumes and
their operations.
• Searchable name an...
Demo
Thank you!
Everything You Need to Know About Docker and Storage by Ryan Wallner, ClusterHQ
Upcoming SlideShare
Loading in …5
×

Everything You Need to Know About Docker and Storage by Ryan Wallner, ClusterHQ

517 views

Published on

In this talk, we will provide a 10,000-ft. overview of the key concepts, architectures, and common deployment scenarios for stateful services. We will cover the Docker volumes and available storage options in the community including ClusterHQ’s Flocker volume manager. After getting the lay of the land, we'll see these concepts in action. Starting by deploying a database container on a single node with UCP, Flocker and VolumeHub. Then, using the features of Docker Swarm and Flocker, we will then allow Swarm to automatically reschedule the stateful service along with Flocker moving its volume when the node fails giving us a HA containerized database.

Published in: Technology
  • Be the first to comment

Everything You Need to Know About Docker and Storage by Ryan Wallner, ClusterHQ

  1. 1. Everything you need to know about Docker and storage. Ryan Wallner Technical Evangelist, ClusterHQ
  2. 2. Key Concepts Stageful vs Stateless Volumes Plugins Agenda Volumes & UCP UCP + Volumes External Volumes VolumeHub Demo Creating Volumes Manage Volumes Workloads
  3. 3. Key Concepts Docker & Storage
  4. 4. Docker + Storage
  5. 5. "Stateful" Container • Secrets - public/private keys, password, etc • Databases - databases, sharded, clustered. • Logs - to collect support bundles, run analytics for data mining, etc. • Other - CI repo data, transcoded bits... Stageful vs. Sateless "Stateless" Container • Nothing to Disk • Web Front-End • Can stop and start as many containers as you’d like • Like http is stateless • Container is ephemeral • What has happened or changed will be lost.
  6. 6. Docker volumes help store state from the application to locations outside the docker image. They are logical primitives for shared storage when combined with plugins. • Data is local to engine host only. • Bind-mounts also local, bypass UFS. • Data is inflexible, prone to loss. Docker Volumes $ docker run --name my-special-container -v /container/dir busybox [{e779eb1/var/lib/docker/volumes/e779eb1/_ data /container/dir local true }]
  7. 7. Enable external storage management such as shared-storage for volumes. • Data is external to engine host. • Enables HA for data. • Data can move with container. Docker Volume Plugins
  8. 8. Example $ docker run --name my-container --volume-driver flocker -v vol:/data busybox my-container $ docker inspect -f “{{.Mounts}}” my-container [{vol /flocker/71887326.. /data flocker rw true rprivate}]
  9. 9. Container Movement
  10. 10. Volumes & UCP Docker & Storage
  11. 11. Volumes in UCP • Create, Delete, Use from UI • Takes advantage of volume drivers. • Limited view into volume management
  12. 12. VolumeHub • Clear visibility for volume management. • Current status of volumes and their operations. • Searchable name and metadata. • How much storage in use by size of volumes.
  13. 13. Demo
  14. 14. Thank you!

×