Now that you can do a named volume, you can create any type of volume that uses a driver from your choice of sources.

There is a Catch

The big catch to be aware of is any mount you create in your swarm service needs to be portable to any node where you service can run. Using constraints, you can limit where swarm will schedule your container to only the nodes where you have this data copied. See the docs on configuring a constraint to use this. If you need to have only a single version of your data, rather than multiple copies, then solutions like flocker, gluster, or a simple nfs mount will be needed to have each node point to the same data.

BoxBoat Accelerator

Learn how to best introduce Docker into your organization. Leave your name and email, and we'll get right back to you.