meetup docker paris
TRANSCRIPT
Containerizing stateful Applications
Aliou BACloud Architect and DevOps
[email protected] @aliou-ba-53645568/ @MDA16
Local persistent Storage: Docker Volumes
Docker Volumes: PROS & CONS
Solutions to host my database on Production
Docker Volume Plugins
Develop your own Storage Plugin driver
Demo Time: Postgres, Docker, Swarm, AWS and Flocker
Agenda
Local persistent storageDocker Volume Data Volume Container
Local persistent storagePROS CONS
Data is lost if the Docker host dies.
Mostly for testing and development (Not production)
Data persists even if the container is deleted.
Data volumes can be shared and reused among containers.
Changes to a data volume will not be included when you update an image.
Solutions
Manually copy the data over from host to host.
Manually set up shared storage mountpoints.
Docker Volume Plugins.
Volume Driver Storage Type Developed by
EMC Rexray VirtualBox, EC2, Google Compute Engine, OpenStack, and EMC
EMC
Azure File Storage Azure File Storage Microsoft
VMware vSphere Storage
vSphere VMware
gce-docker plugin GCE @Máximo Cuadros
Flocker All listed above and ... ClusterHQ
Docker Volume Plugins
https://docs.docker.com/engine/extend/legacy_plugins/
Develop your own Storage Plugin driver
DEMO
PostgreSQL
Swarm (Swarm mode)
AWS
Flocker
Docker Image binocarlos/moby-counter ( pretty Web UI postgres Client)