DirectorySecurity Advisories
Sign In
Directory
jupyter-base-notebook logo

jupyter-base-notebook

Last changed

Create your Free Account

Be the first to hear about exciting product updates, critical vulnerability alerts, compare alternative images, and more.

Sign Up
Tags
Overview
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for jupyter-base-notebook

Minimal Jupyter base notebook image using pip

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/jupyter-base-notebook:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

This image is not fully compatible with the base-notebook image from Jupyter.

The following are the key differences between Chainguard's base-notbook image and the image from Jupyter:

  • The Chainguard Jupyter notebook image ships uses dependencies from PyPI, and does not include conda or mamba.
  • The CMD of the Chainguard image is set to start-notebook.py and passing --ip=0.0.0.0 is required. If you want to use the image with default CMD or use a different CMD, overriding the current CMD is required.
docker run -d -p 8888:8888 cgr.dev/ORGANIZATION/jupyter-base-notebook:latest start-notebook.py --ip=x.y.z.a

Getting Started

Using the Docker Image Directly

To use Chainguard's Jupyter notebook image, run the following command in your project's directory:

docker run --rm --name=base-notebook -p 8888:8888 -v $(pwd):/home/jovyan cgr.dev/ORGANIZATION/jupyter-base-notebook:latest start-notebook.py --ip=0.0.0.0

You will need to retrieve the token from the logs of the container to access the Jupyter notebook. The logs will look like this:

docker logs base-notebook
. . .

[I 2025-01-02 07:12:43.241 ServerApp] Jupyter Server 2.15.0 is running at:
[I 2025-01-02 07:12:43.241 ServerApp] http://182b5e058be1:8888/lab?token=6901fcbf319446804d212326074998fcf240b34f9429012b
[I 2025-01-02 07:12:43.241 ServerApp]     http://127.0.0.1:8888/lab?token=6901fcbf319446804d212326074998fcf240b34f9429012b

You can then access the Jupyter notebook by visiting the given URL. For example: http://127.0.0.1:8888/lab?token=6901fcbf319446804d212326074998fcf240b34f9429012b.

Using the jupyterhub Helm Chart

Chainguard's jupyter-base-notebook image is also meant to be used as part of jupyterhub chart from JupyterHub's Helm chart repository.

To run it, override the singleuser image used in the chart, like so:

helm repo add jupyterhub https://hub.jupyter.org/helm-chart/
helm repo update
helm install jupyterhub jupyterhub/jupyterhub --values config.yaml

Where config.yaml contains:

singleuser:
  image:
    name: cgr.dev/ORGANIZATION/jupyter-base-notebook
    tag: latest

It is also possible to use the Chainguard jupyterhub-k8s-hub for the hub image:

hub:
  config:
    JupyterHub:
      db_url: /usr/local/etc/jupyterhub/jupyterhub.sqlite
  image:
    name: cgr.dev/ORGANIZATION/jupyterhub-k8s-hub
    tag: latest
singleuser:
  image:
    name: cgr.dev/ORGANIZATION/jupyter-base-notebook
    tag: latest

Documentation and Resources

For more information, please refer to the official documentation for using jupyter notebooks. You can also find more information in the Jupyter Docker Stacks documentation.

Lastly, for instructions on deploying jupyterhub chart from JupyterHub's Helm chart repository, please refer to the JupyterHub documentation.

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • BSD-2-Clause

  • BSD-3-Clause

  • GCC-exception-3.1

  • GPL-2.0-only

  • GPL-2.0-or-later

  • GPL-3.0

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Category
application

Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Chainguard ContainersChainguard LibrariesChainguard VMs