Looking at multiple options to implement a shared storage for a Docker Swarm, I can see most of them require a special Docker plugin:
- sshFs
- CephFS
- glusterFS
- S3
- and others
... but one thing that is not mentioned anywhere is just mounting a typical block storage to all VPS nodes running the Docker Swarm. Is this option impractical and thus not mentioned on the Internet? Am I missing something?
My idea is as follows:
- Create a typical Block Storage (like e.g. one offered by DigitalOcean or Vultr).
- Mount it to your VPS filesystem.
- Mount a folder from that Block Storage as a volume in the Docker Container / Docker Worker with using a "local" driver.
Sounds the simplest and most obvious to me. Why people are using more complicated setups like sshFs, CephFS etc? And most importantly, is the implementation I described viable, and if so, what are the drawbacks of doing it this way?