Home:ALL Converter>Mount a local data directory into jupyterhub

Mount a local data directory into jupyterhub

Ask Time:2019-04-12T18:41:09         Author:Aaron

Json Formatter

I build and run jupyterhub a docker image. https://hub.docker.com/r/joergklein/jupyterhub

Is it a good idea to mount in the Dockerfile

# Create a mountpoint
VOLUME /data

or is it better to mount to

# Create a mountpoint
VOLUME /home/data

I have a local data dir on my computer. I will mount the data dir into the container /data or /home/data.

At first I download and install the image

docker run -p 8000:8000 -d --name jupyterhub joergklein/jupyterhub jupyterhub

Second I will mount the datasets dir. into the /data in the container. In the dataset dir are a lot of csv files.

docker run -v /home/user/datasets:/data -t jupyterhub /bin/bash

I want run the JupyterHub in a sub domain in a team.

  1. We want share the data. How can all team member work in this directory?
  2. How we can add new data in this directory?
  3. Which is the right docker run commnd?

Author:Aaron,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/55649822/mount-a-local-data-directory-into-jupyterhub
yy