The notebook list is empty

Hi Team,

I have followed “https://github.com/jupyterhub/jupyterhub-deploy-docker” to set up jupyter server. Please guide how can I import notebook to work folder?

I have tried to change the path from /home/jovyan/work to /srv/jupyterhub/notebook but still its showing work folder?
Also, I ran “make notebook_image” command which started a docker container with jovyan path but I am logged in as GitHub users. So from the terminal when I run Jupiter notebook list I can see the notebook is accessible on some link which I don’t want as I simply want the notebook to be present under the work directory.

I have no issues while building the server using docker compose .
docker-compose

version: “3.3”

services:
hub:
build:
context: .
dockerfile: Dockerfile.jupyterhub
args:
JUPYTERHUB_VERSION: ${JUPYTERHUB_VERSION}
restart: always
image: jupyterhub
container_name: jupyterhub
volumes:
# Bind Docker socket on the host so we can connect to the daemon from
# within the container
- “/var/run/docker.sock:/var/run/docker.sock:rw”
# Bind Docker volume on host for JupyterHub database and cookie secrets
- “jupyterhub-data:/srv/jupyterhub”
ports:
- “8000:8000”
environment:
# All containers will join this network
DOCKER_NETWORK_NAME: jupyterhub-network
# JupyterHub will spawn this Notebook image for users
DOCKER_NOTEBOOK_IMAGE: jupyterhub-user
# Notebook directory inside user image
DOCKER_NOTEBOOK_DIR: ‘/srv/jupyterhub/notebook’
# Using this run command (optional)
DOCKER_SPAWN_CMD: start-singleuser.sh
# Postgres db info
POSTGRES_USER: postgres
POSTGRES_HOST: postgreshost
POSTGRES_PASSWORD: password
POSTGRES_DB: jupyterhub
GITHUB_CLIENT_ID: 5
GITHUB_CLIENT_SECRET: 1e7e4a4b587
OAUTH_CALLBACK_URL: xx.xx.xx.xx:8000/hub/oauth_callback
CONFIGPROXY_AUTH_TOKEN: super-secret
command:
- /bin/sh
- -c
- |
jupyterhub -f /srv/jupyterhub/jupyterhub_config.py

volumes:
jupyterhub-data:

networks:
default:
external:
name: jupyterhub-network

1 Like