I want to use jupyterhub/jupyterhub to start a container running jupyterhub.
So I create a Dockerfile:
FROM jupyterhub/jupyterhub
RUN useradd -m test &&
echo "test:password" | chpasswd
And using docker build -t jupyterhub_test:3 .
to build a image with user test and password password.
However, when I start the container using docker run -itp 8080:8000 jupyterhub_test:3
I could log in in the host machine with hostmachine_ip:8080; but there is the error saids “No module named jupyter_core”
And I search for the solution, someone suggest to install notebook in Dockerfile and I tried, it works, but when I log in, I was in jupyterlab instead of jupyterhub interface.
So here comes two question:
1 How could I login into the jupyterhub instead of jupyterlab?
2 As an official docker hub, how come jupyterhub/jupyterhub image didn’t work until I installed some other module, are there some things I didn’t make correct? I suppose I should get a container immediately worked based on this image.