mabi
2017-Jun-25 16:38 UTC
[Gluster-users] Persistent storage for docker containers from a Gluster volume
Hello, 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). 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: docker service create --name testcontainer --mount type=bind,source=/mnt/gustervol/testcontainer,target=/mnt alpine What do you think about that? Is this a good way? or is the even a better way? Regards, M. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170625/2524c5a0/attachment.html>
mabi
2017-Jun-28 12:19 UTC
[Gluster-users] Persistent storage for docker containers from a Gluster volume
Anyone?> -------- Original Message -------- > Subject: Persistent storage for docker containers from a Gluster volume > Local Time: June 25, 2017 6:38 PM > UTC Time: June 25, 2017 4:38 PM > From: mabi at protonmail.ch > To: Gluster Users <gluster-users at gluster.org> > Hello, > 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). > 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: > docker service create --name testcontainer --mount type=bind,source=/mnt/gustervol/testcontainer,target=/mnt alpine > What do you think about that? Is this a good way? or is the even a better way? > > Regards, > M.-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170628/ef003ffb/attachment.html>
Raghavendra Talur
2017-Jun-29 09:55 UTC
[Gluster-users] Persistent storage for docker containers from a Gluster volume
On 28-Jun-2017 5:49 PM, "mabi" <mabi at protonmail.ch> wrote: Anyone? -------- Original Message -------- Subject: Persistent storage for docker containers from a Gluster volume Local Time: June 25, 2017 6:38 PM UTC Time: June 25, 2017 4:38 PM From: mabi at protonmail.ch To: Gluster Users <gluster-users at gluster.org> Hello, 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). 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: docker service create --name testcontainer --mount type=bind,source=/mnt/ gustervol/testcontainer,target=/mnt alpine What do you think about that? Is this a good way? or is the even a better way? If you are using kubernetes, then please have a look at https://github.com/gluster/gluster-kubernetes Otherwise, what you are suggesting works. Raghavendra Talur Regards, M. _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://lists.gluster.org/mailman/listinfo/gluster-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170629/fda8ee25/attachment.html>
Maybe Matching Threads
- Persistent storage for docker containers from a Gluster volume
- Persistent storage for docker containers from a Gluster volume
- Persistent storage for docker containers from a Gluster volume
- Notes on building libguestfs in a systemd-nspawn container
- Samba-AD in Docker