So far, we have been usingthe local storage which is available on our hosts, as mentioned in Chapter 4, Docker Swarm that isn't very useful when you potentially have move the storage between multiple hosts either because you are hosting a cluster or because of problems with the host machine itself.
In this example, we are going to be launching a Docker instance in Amazon Web Services, install a volume plugin called REX-Ray, written by EMC, and then launch our WordPress example but this time we will attach AmazonElastic Block Storage volumes to our containers. Once configured, we will move our containers to a second host machine to demonstrate that the data has persisted.
REX-Ray supports several storage types on both public clouds and EMC's own range, as follows:
Amazon Elastic Block Store - https://aws.amazon.com/ebs/
Digital Ocean Block Storage - https://www.digitalocean.com/products/storage
OpenStack Cinder - https://wiki.openstack.org/wiki/Cinder
Google Compute Engine...