Docker Community Forums

Share and learn in the Docker community.

Running Jupyter Notebook in Container yields "The notebook list is empty" even after Mount Correction

Issue Type: Unable to access Jupyter Notebooks through Container.

Issue Details:
I’m seeking to run code from the book (Generative Deep Learning by David Foster) using the supplied Dockerfile. I’m using the latest branch whose code can be found on Github here. The count is written in Jupyter Notebooks, and when I paste the URL for the Notebooks at this time I get a message of “The notebook list is empty”.

Notes to keep in mind:

  1. I had the same issue previously before, but the problem was fixed by following instructions for specifying the mount. (From Nick Janetakis “Setting up Docker for Windows and WSL to work flawlessly”, sorry apparently as a newbie I can’t add more links.)

  2. When I new update got pushed to github, I updated my machine and the problem has shown up again despite the fact that the previous fix sure still seems to be in place.

OS Version/Build
Windows 10 Pro
Version 2004
OS Build 19041.388

App Version
Docker Desktop Community
Version 2.3.04 (46911)
Channel stable
WSL 2 based engine
Ubuntu-20.04

Steps to reproduce (I think, apologies if I’m missing something, as that seems like something that I might do as I’m new at this):
Command prompt:

  1. Pull branch from github. Originally used:
    git clone --single-branch --branch tensorflow_2 https://github.com/davidADSP/GDL_code.git

Later: git pull

Creates in new sub-directory /GDL_code

WSL:
2. Type:
sudo nano /etc/wsl.conf
(enter password):

In GNU nano 4.8 add:

[automount]

root = /

options = “metadata”

Then ^X to exit

  1. ln -sf Dockerfile.cpu Dockerfile

  2. docker build -t gdl-image-cpu .

  3. docker run --rm -p 8888:8888 -it -v /C/users/matha/GDL_code:/GDL gdl-image-cpu

(/C/users/matha being specific to my set up.)

The last line gives these options in the output:

To access the notebook, open this file in a browser:
    file:///home/gdl/.local/share/jupyter/runtime/nbserver-1-open.html
Or copy and paste one of these URLs:
    http://a92ee904a471:8888/?token=77b527ac3e14e2475f2f063c0ea8e9b688d7e215fcc25799
 or http://127.0.0.1:8888/?token=77b527ac3e14e2475f2f063c0ea8e9b688d7e215fcc25799

I’ve been copying the last URL into my Chrome browser, and this is where it successfully showed directories of Jupyter Notebook files before, but now shows “The notebook list is empty.”

Thank you in advance for your help and your patience. I’m trying hard to figure this stuff out, but it’s a struggle.

Sincerely,
Matt

1 Like