Host mapped volume backed up by shared storage
Docker volume plugins allow us to mount a shared storage backend. The main advantage of this is that the user will never suffer data loss in the case of host failure, as it is backed by shared storage. In the preceding approaches, if we migrate the container, the volumes doesn't get migrated. It can be achieved with the help of external Docker volume plugins such Flocker and Convy, which make the volume portable and help to migrate the containers across hosts with volumes easily, as well as protecting the data, as it is not dependent on the host file system.
Flocker
Flocker is widely used to run containerized stateful services and applications that require persistent storage. Docker provides a very basic view of volume management, but Flocker enhances it by providing durability, failover, and high availability of the volumes. Flocker can be deployed manually with Docker Swarm and compose, or can be set up easily on AWS with the help of the...