From f54bbed6caa7bd3e2399a1dfcef3e90c910e9bbd Mon Sep 17 00:00:00 2001 From: Polarnova Date: Thu, 30 Nov 2023 21:45:11 +0800 Subject: [PATCH] fix volcume Permission denied issue, with some little changes in README --- Dockerfile | 2 +- README.md | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index eab632a..f502922 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ RUN /bin/bash -c "source activate $CONDA_ENV_NAME && \ mamba install xeus-cling -c conda-forge --yes" # Switch back to non-root user -USER $NB_UID +# USER $NB_UID #Install the Kernel Spec RUN /bin/bash -c "source activate $CONDA_ENV_NAME && \ diff --git a/README.md b/README.md index f80366b..a936250 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,24 @@ # Cling-Jupyter Docker -This repository provides a Dockerfile for running Jupyter Notebooks with [xeus-cling](https://github.com/jupyter-xeus/xeus-cling). +This repository provides a Dockerfile for running [cling](https://github.com/root-project/cling) with [Jupyter Notebooks](https://jupyter.org/) using [xeus-cling](https://github.com/jupyter-xeus/xeus-cling). ## Getting Started ### Pull & Run +To pull the Docker image, use the following command: ```bash docker pull p01arn0va/cling-jupyter - docker run -it -v ~/Documents/workspace:/home/jovyan/work -p8888:8888 --rm cling-jupyter:latest +``` + +Here is an example of how to run the Docker image: +```bash +docker run -it --rm -p8888:8888 -v $PWD:/home/jovyan/work p01arn0va/cling-jupyter ``` ### Building the Docker Image -To build the Docker image locally, run the following command in the repository's root directory: +To build the Docker image locally, run the following command in the repository’s root directory: ```bash docker build -t cling-jupyter .