Dockerfile
FROM ubuntu
RUN apt -y update && apt -y upgrade
RUN apt install -y python3 python3-pip
RUN pip install jupyterlab
WORKDIR /
RUN mkdir /code
CMD ["jupyter-lab", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
以下を実行
docker build . -t myjupyter
docker run -p 8888:8888 -v `pwd`:/code myjupyter