Closed juan-sv closed 3 years ago
Hey, Juan. I don't use Windows, so I won't be able to help. However, after a quick search, I noticed Docker Toolbox is deprecated: https://docs.docker.com/docker-for-windows/docker-toolbox/. And obviously, make sure that you actually have the notebooks in the ./notebooks
directory, that's from the gdrl
folder. You should be able to ls notebooks
and see the list of per-chapter folders the same as this: https://github.com/mimoralea/gdrl/tree/master/notebooks.
Once you figure it out, please come back and let folks know what the issue was.
Container must be run with group "root" to update passwd file
It seems you have to have root privilegies to do this? I'd try running again logged in as root, but if that's not an option, I'd try
sudo docker run -it --rm -p 8888:8888 -v "$PWD"/notebooks/:/mnt/notebooks/ mimoralea/gdrl:v0.14
If this says something along the lines of
<your_username> is not in the sudoers file
then you may find this helpful:
Add To Sudoers File
Hope this helps!
Edit: I just noticed the same line shows up in my output. But I can see all the notebooks - it works fine for me. So this root message might be just red herring. The missing part for you is the 'signing notebook' lines though. Here's what it looks like on my Win machine:
`docker run -it --rm -p 8888:8888 -v %CD%/notebooks/:/mnt/notebooks/ mimoralea/gdrl:v0.14 [TrustNotebookApp] Writing notebook-signing key to /home/jovyan/.local/share/jupyter/notebook_secret Signing notebook: /mnt/notebooks/chapter_02/chapter-02.ipynb Signing notebook: /mnt/notebooks/chapter_03/chapter-03.ipynb Signing notebook: /mnt/notebooks/chapter_04/chapter-04.ipynb Signing notebook: /mnt/notebooks/chapter_05/chapter-05.ipynb Signing notebook: /mnt/notebooks/chapter_06/chapter-06.ipynb Signing notebook: /mnt/notebooks/chapter_07/chapter-07.ipynb Signing notebook: /mnt/notebooks/chapter_08/chapter-08.ipynb Signing notebook: /mnt/notebooks/chapter_09/chapter-09.ipynb Signing notebook: /mnt/notebooks/chapter_10/chapter-10.ipynb Signing notebook: /mnt/notebooks/chapter_11/chapter-11.ipynb Signing notebook: /mnt/notebooks/chapter_12/chapter-12.ipynb Container must be run with group "root" to update passwd file Executing the command: jupyter notebook [I 14:30:20.050 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret [I 14:30:22.145 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab [I 14:30:22.145 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab [I 14:30:23.623 NotebookApp] Serving notebooks from local directory: /mnt/notebooks [I 14:30:23.623 NotebookApp] The Jupyter Notebook is running at: [I 14:30:23.623 NotebookApp] http://e076f7812446:8888/ [I 14:30:23.624 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 14:30:34.969 NotebookApp] 302 GET / (172.17.0.1) 1.81ms
Thanks @mimoralea, @boyko11,
I finally got it! The problem was using Docker Toolbox, but I can't upgrade to Docker Desktop, because my old PC doesn't meet the requirements. I found the answer here. The solution:
docker-machine ssh default
docker run -it --rm -p 8888:8888 -v /gdrl/notebooks/:/mnt/notebooks/ mimoralea/gdrl:v0.14
Hello,
I'm trying to execute the notebooks from docker image, but when I run the container and log in into jupyter notebook, the notebook/folder list is empty.
I cloned the repository and CD to the gdrl directory. I'm using Docker Toolbox with Oracle Virtual Box to execute either:
docker run -it --rm -p 8888:8888 -v %CD%/notebooks/:/mnt/notebooks/ mimoralea/gdrl:v0.14
docker run -it --rm -p 8888:8888 -v "$PWD"/notebooks/:/mnt/notebooks/ mimoralea/gdrl:v0.14
The logs when spinning the docker container are:
when I log into Jupyter Notebook (See error in line 10):
Thanks for the support