- Install Docker for your system.
- Install
gitand clone this repo. - Navigate into the repo and "Build" the container for this project. This downloads all the pre-requisite software to run this container.
cd ./dockerized_jupyter
docker build -t jupyter_lab_docker .- Get the
$IMAGE_IDof the Docker image you just created:
IMAGE_ID=$(docker image ls | grep jupyter_lab_docker | awk '{print $3}')- "Run" the generated Docker image and launch Jupyter with the following command:
docker run \
--volume $(pwd):/home/jovyan \
--publish 8888:8888 \
--env JUPYTER_ENABLE_LAB="yes" \
$IMAGE_IDPython dependencies can be updated in the requirements.txt file locally. After making any changes to requirements.txt (or Dockerfile), re-build the image: docker build -t jupyter_lab_docker ..