Building Docker Images for Jupyter Notebook
by aaronchenwei
Jupyter Docker Stacks are a set of ready-to-run Docker images containing Jupyter applications and interactive computing tools. We can use a stack image to do any of the following (and more):
- Start a personal Jupyter Server with the JupyterLab frontend (default)
- Run JupyterLab for a team using JupyterHub
- Start a personal Jupyter Notebook server in a local Docker container
- Write your own project Dockerfile
Sometimes, we would like to build customized docker images. Here are some quick examples for how to build them.
$ git clone https://github.com/jupyter/docker-stacks.git
$ cd docker-stacks
- To build a private version of Docker iamges with Python 3.9
$ OWNER=aaronchenwei DOCKER_BUILD_ARGS="--build-arg PYTHON_VERSION=3.9" make build-all
- To build
$ OWNER=aaronchenwei DOCKER_BUILD_ARGS="--build-arg NB_USER=aaron NB_UID=10000 NB_GID=10000" make build-all