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

Teradata Vantageā„¢ Modules for Jupyter Installation Guide

prodname
Teradata Vantage Modules for Jupyter
vrm_release
1.2
category
Installation
featnum
B700-4010-049K
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. It creates a Docker-managed volume <volume_name> and persists notebooks, Teradata SQL kernel connections, logs, result sets, and more inside the volume. docker run -p 127.0.0.1:8888:8888 -v <volume_name>:/home/jovyan/JupyterLabRoot teradatajupyterlabext
    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.