Recommended Free Tools
Create a reusable JupyterLab environment by putting your Python dependencies in a Dockerfile, building that file into an image, and running a container with Jupyter’s port published. Mount a Docker volume or a host folder for notebooks you want to keep: removing a container does not preserve files written only inside it.
What the image contains—and what it does not
A Dockerfile is a text file that tells Docker how to create an image of your JupyterLab environment. The image packages the base environment and the Python packages you install into it, so a new container made from that image does not need to install those packages again. Your notebooks are a separate concern: unless you mount persistent storage, files written in a container’s writable layer can disappear when that container is removed.
For a notebook-centered workflow, Docker’s JupyterLab guide uses quay.io/jupyter/base-notebook. Its example adds matplotlib and scikit-learn for an Iris visualization walkthrough. That pair is an example, not a complete or universal data-science stack. Add only the packages your project needs. For a more general Python application, Docker’s Python guide demonstrates recording dependency versions in a requirements file.
Create the Dockerfile
In a new project folder, create a file named Dockerfile with no file extension:
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
# syntax=docker/dockerfile:1
FROM quay.io/jupyter/base-notebook
RUN pip install --no-cache-dir matplotlib scikit-learn
The FROM line selects the Jupyter base image. The RUN line installs the example packages while Docker builds your image. To adapt this for a real project, replace or extend the package list with the dependencies your notebooks use. Record package versions—such as in a requirements file—and use those recorded versions when building if collaborators need to reconstruct the same intended environment. Docker’s Python guide shows pinned requirements in its application example.
Jupyter Docker Stacks images are distributed through Quay.io. Before building a project image, check the Jupyter Docker Stacks project page for an appropriate current image tag and architecture. A floating reference such as an unpinned image name may follow changes upstream; a dated or otherwise pinned reference makes the selected base image more explicit. The documentation establishes these options, but does not provide a controlled comparison of their performance.
Build the image
Open a terminal in the directory containing the Dockerfile and run:
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
docker build -t my-jupyter-image .
The final period makes the current directory the build context: the files available to Docker for this build. The -t option gives the resulting image the local name my-jupyter-image. If the build succeeds, Docker has created an image from the Dockerfile and its build context. See Docker’s guidance on writing a Dockerfile and its Dockerfile overview for the underlying concepts.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Run JupyterLab and open it in a browser
Start a container from the image and publish its Jupyter server port to your computer:
docker run --rm -p 8889:8888 my-jupyter-image start-notebook.py --NotebookApp.token='my-token'
The mapping 8889:8888 means port 8889 on the host is forwarded to port 8888 in the container. Open http://localhost:8889/lab?token=my-token in a browser to reach JupyterLab. The token shown is a tutorial example, not a production access policy; choose access controls appropriate to where and how you expose the server.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
The --rm option removes the container after it stops. It does not remove the built image, but it also does not make the container’s unmounted writable data persistent. Choose a storage mount before relying on the container for notebooks you need later.
Keep notebooks when the container is replaced
Use a named volume if you want Docker to manage persistent notebook storage, or a bind mount if you want notebooks in a particular host folder that you can access directly from your usual file tools.
| Storage choice | Where notebook files live | Choose it when |
|---|---|---|
| Named volume | In Docker-managed storage, mounted at the path you specify | You want files to persist across container replacement without choosing a host folder path. |
| Bind mount | In a host directory you specify, mounted into the container | You want to edit or access the same files directly from the host. |
Use a named volume
This command mounts a named volume, jupyter-data, at Jupyter’s work directory:
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
docker run --rm -p 8889:8888 -v jupyter-data:/home/jovyan/work my-jupyter-image start-notebook.py --NotebookApp.token='my-token'
Files saved under /home/jovyan/work are stored in the volume rather than only in the container’s writable layer. Run a later container with the same volume mount to access that work again.
Use a bind mount
To use a host folder instead, mount its path to /home/jovyan/work with -v. For example, on a Unix-like host, a project folder can be mounted with:
docker run --rm -p 8889:8888 -v "$PWD/notebooks:/home/jovyan/work" my-jupyter-image start-notebook.py --NotebookApp.token='my-token'
Here, notebooks is a directory under the current host directory. Create it first if needed, and adapt the host path to your operating system and shell. The mount makes files in that host folder available at the container’s work path. Docker’s general build best practices recommend keeping containers ephemeral; persistent storage lets you replace containers without treating them as the home of your only copy of notebook files.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Share the image carefully
Docker’s JupyterLab guide also describes tagging and pushing a locally built image to Docker Hub. Before publishing, decide whether the repository should be public or private and make sure you do not include credentials, private data, or other sensitive files in the image or build context. Registry login and repository visibility are separate choices from building the image locally; publishing an image makes it available according to the registry’s access settings.
Choose the simplest setup that fits the work
- Jupyter base image or general Python image: choose the Jupyter base image for a notebook-centered environment. A general Python base image is an alternative when you need to assemble a less notebook-specific setup; Docker’s Python Official Image page documents that image family.
- Minimal packages or a preloaded stack: installing only project dependencies keeps the environment focused. A broader preloaded stack can be convenient, but the cited guidance does not establish a comparative image size, startup time, or build time.
- Floating or pinned base reference: a floating reference can pick up upstream changes; a dated or otherwise pinned reference documents the base selection more precisely. Check the Jupyter Stacks project for the current tags and architecture rather than relying on old Docker Hub instructions for Jupyter Stacks.
- Named volume or bind mount: choose a named volume for Docker-managed persistence, or a bind mount when you want the files in a host directory.
The Docker build-and-run workflow creates a local image and container. The Binder Project is a separate option for launching shareable notebook environments from repositories; it is not a step required to build this Docker image.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

