Docker volumes vs Bind mount for data persistence of user folders

18 views
Skip to first unread message

Alvin Huff

unread,
Jun 4, 2019, 7:57:25 PM6/4/19
to Project Jupyter
Hello is there a reason I would want to use a docker volume (e.g.
-v nfsvolume:/home/joyvan/work

) vs bind mount (e.g.
-v /vol_b/exchange:/home/joyvan/work

) for persistent data?

I was struggling with using docker volumes each time the container would start up it would through a permissions denied error when trying to mount the docker volume so I switched to just mounting a folder.  Is there a good reason to use docker volumes over a bind mount.  I am new to this so if my terminology is off please let me know.

cheers,

alvin 

William Stein

unread,
Jun 4, 2019, 8:01:36 PM6/4/19
to jup...@googlegroups.com
What host operating system are you using? (OS X? Linux? Windows?)

>
> cheers,
>
> alvin
>
> --
> You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
> To post to this group, send email to jup...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/ef3996bc-be10-42b3-826f-0827a57f7209%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
William (http://wstein.org)

Alvin Huff

unread,
Jun 4, 2019, 8:53:12 PM6/4/19
to Project Jupyter
ubuntu 18.04 on jetstream-cloud.org


On Tuesday, June 4, 2019 at 5:01:36 PM UTC-7, William Stein wrote:
On Tue, Jun 4, 2019 at 4:57 PM Alvin Huff <sir...@asu.edu> wrote:
>
> Hello is there a reason I would want to use a docker volume (e.g.
> -v nfsvolume:/home/joyvan/work
>
> ) vs bind mount (e.g.
> -v /vol_b/exchange:/home/joyvan/work
>
> ) for persistent data?
>
> I was struggling with using docker volumes each time the container would start up it would through a permissions denied error when trying to mount the docker volume so I switched to just mounting a folder.  Is there a good reason to use docker volumes over a bind mount.  I am new to this so if my terminology is off please let me know.

What host operating system are you using?  (OS X?  Linux?  Windows?)

>
> cheers,
>
> alvin
>
> --
> You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jup...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages