<div>Anyone?<br></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><blockquote class="protonmail_quote" type="cite"><div>-------- Original Message --------<br></div><div>Subject: Persistent storage for docker containers from a Gluster volume<br></div><div>Local Time: June 25, 2017 6:38 PM<br></div><div>UTC Time: June 25, 2017 4:38 PM<br></div><div>From: mabi@protonmail.ch<br></div><div>To: Gluster Users &lt;gluster-users@gluster.org&gt;<br></div><div><br></div><div>Hello,<br></div><div>I have a two node replica 3.8 GlusterFS cluster and am trying to find out the best way to use a GlusterFS volume as persistent storage for docker containers to store their data (e.g. web assets).<br></div><div>I was thinking that the simplest method would be to mount my GlusterFS volume for that purpose on all docker nodes using FUSE and then simply start containers which require persistent storage with a mount of bind type. For example here is how I would create my container requiring persistent storage:<br></div><div><br></div><div>docker service create --name testcontainer  --mount type=bind,source=/mnt/gustervol/testcontainer,target=/mnt alpine<br></div><div class="protonmail_signature_block protonmail_signature_block-empty"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><div><br></div></div><div class="protonmail_signature_block-proton protonmail_signature_block-empty"><br></div></div><div><br></div><div>What do you think about that? Is this a good way? or is the even a better way?<br></div><div><div><br></div><div>Regards,<br></div></div><div>M.<br></div></blockquote>