NVIDIA / data-science-stack

NVIDIA Data Science stack tools
Apache License 2.0
375 stars 57 forks source link

Add storage volume to container #45

Closed ncoop57 closed 3 years ago

ncoop57 commented 3 years ago

Hi, my workflow requires adding a data pool as a volume to my containers, e.g.:

docker run -v "path/to/data/:/data" ...

However, I could find anywhere in your documentation if this is possible. Is there a section about this or is it currently not supported? If it's currently not supported are there any plans to add it?

Any help will be greatly appreciated!

flyandlure commented 3 years ago

Yes, I was also a bit confused about how to do this. It would be great if an additional note could be added to the documentation to explain this, please.

Many thanks, Matt

beberg commented 3 years ago

Will add a section to the README about code and data volumes.

flyandlure commented 3 years ago

Many thanks, Beberg. Much appreciated. I managed to do this manually but wasn't sure whether there was a different approach that I should be using.

docker run --name nvidia_data_science_stack -v ~/Data/notebooks:/home --gpus all --rm -it -p 8888:8888 -p 8787:8787 -p 8786:8786 data-science-stack:2.5.0

This maps the directory, but the JupyterLab is set to use the notebook_dir of /notebooks, which I couldn't seem to override. Appreciate your help with this.

Thanks, Matt