Aaron's Blog

https://aaronchenwei.github.io/

View on GitHub
17 May 2023

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):

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
$ OWNER=aaronchenwei DOCKER_BUILD_ARGS="--build-arg PYTHON_VERSION=3.9"  make build-all
$ OWNER=aaronchenwei DOCKER_BUILD_ARGS="--build-arg NB_USER=aaron NB_UID=10000 NB_GID=10000"  make build-all