Start Docker Container for JupyterLab to Persist User Data - Starting the Docker Container for JupyterLab to Persist User Data on a Docker-Managed Volume - Teradata Vantage Modules for Jupyter

Teradata Vantageā„¢ Modules for Jupyter Installation Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Vantage Modules for Jupyter
Release Number
3.5
Published
September 2024
Language
English (United States)
Last Update
2024-09-13
dita:mapPath
nuw1535116212598.ditamap
dita:ditavalPath
ft:empty
dita:id
nuw1535116212598
Product Category
Teradata Vantage
This task describes how to start the Docker image so that user data persists on a Docker-managed volume.
On a macOS, you cannot easily access the volume outside of the running Docker.
  1. Start the Docker container using the following command. The command creates a Docker-managed volume <volume_name> and persists notebooks, Teradata SQL kernel connections, logs, result sets, and more inside the volume.

    docker run -e "accept_license=Y" -p 127.0.0.1:8888:8888 -v <volume_name>:/home/jovyan/JupyterLabRoot <image name>

    To accept the license terms, set the environment variable accept_license to Y.
    You can name the <volume_name> anything you choose, but the /home/jovyan/JupyterLabRoot must be entered exactly as shown.
    The command window displays the URL and token needed to access JupyterLab from your browser.
  2. Use the following commands to manage docker volumes:
    Command Description
    docker volume list Lists docker volumes.
    docker volume prune Prunes all volumes.
    docker volume rm vol-name Removes named volume.
    You may need to prune your container before removing a volume. The container must be stopped before you prune using the command docker stop container name.
    docker container prune Prunes all stopped containers.

    See Docker documentation for a complete list of commands used to manage docker volumes.