Coming from a VMware environment, my through process was that,
- Multiple Docker machines (swarm), mount the same NFS data stores
- A container (e.g. Maria dB) is deployed on the Docker swarm
- If a node in the swarm fails, the service is still running on the other nodes
So I mounted /var/lib/docker/volumes on an NFS share, on multiple Docker machines and tried to create a swarm. But eventually I found out that if multiple Docker machines mount the same NFS data store, the Docker service can only be started on one of the nodes.
So I guess my question is, how to I create a swarm, with the same service running on multiple nodes, and the data is kept on an NFS share?
Of course there’s a good chance I haven’t yet completely understood the idea of how a Docker swarm works, and I’m looking at this from a wrong angle.