hse-aml / natural-language-processing

Resources for "Natural Language Processing" Coursera course.

Home Page:https://www.coursera.org/learn/language-processing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker access to shared folder

D-Drake-GitHub opened this issue · comments

Hi,

Having issues getting the access to work for Docker and would really appreciate some straightforward advice as I have never used Docker before. The Docker installation is the toolbox version on Windows 10 (not pro).

I have reached the point where I have Docker Quickstart Terminal and a Jupyter Notebook session running. Note that the Docker tutorial on Github fails at this point:

David@DESKTOP-TLE6KHC MINGW64 /c/Program Files/Docker Toolbox
$ docker run -it -p 8080:8080 --name coursera-aml-nlp --user root -v /C:/Users/David/natural-language-processing-master
/week3/data:/root/coursera
"docker run" requires at least 1 argument.
See 'docker run --help'.

Usage:  docker run [OPTIONS] IMAGE [COMMAND] [ARG...]

Run a command in a new container

So, as I am using the toolbox I follow the instructions from Dr Shahin Rostami at:

https://shahinrostami.com/posts/tools/docker/docker-toolbox-windows-7-and-shared-volumes/

Which brings me to the point in the instructions:


Sharing Folders with a Docker Container

To create a Docker container from the jupyter/scipy-notebook image, type the following command and wait for it to complete execution: docker run --name="scipy" --user root -v /h/work:/home/jovyan -d -e GRANT_SUDO=yes -p 8888:8888 jupyter/scipy-notebook start-notebook.sh --NotebookApp.token=''

This may take some time, as it will need to download and extract the image. Once it's finished, you should be able to access the Jupyter notebook using 127.0.0.1:8888. I hope this helps you get up and running with Docker Toolbox and shared folders. Of course, the process is typically easier when using the non-legacy Docker solutions.


Which results in the page:
image

I'm really not sure what the token or password represent here. The access to the folder is all I am after but I do not know what to try next.

Thanks,

David