From 94b2303321c351cd909e76367b51f5377fe5a04e Mon Sep 17 00:00:00 2001 From: Steffen Vogel <stvogel@eonerc.rwth-aachen.de> Date: Fri, 22 Jan 2021 10:02:42 +0100 Subject: [PATCH] do not mount home dir to avoid issues with user-wide installed python/conda packages --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae41672..c8a7348 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,10 @@ If you happen to have Docker installed, you can start a local dockerized Jupyter ```bash # Navigate to your local clone of this repo -cd path/to/example-profile +# Note: Adjust this path to your local environment +WORKDIR=/home/stv0g/example-profile + +cd ${WORKDIR} # Login to the RWTH GitLab Docker registry # (required for pulling the base image) @@ -31,7 +34,7 @@ docker login registry.git.rwth-aachen.de docker build --tag jupyter-example-profile . # Run the Docker image -docker run --name='jupyter-example-profile' --rm --interactive --tty --publish 8888:8888 --volume ${HOME}:/home/jovyan jupyter-example-profile +docker run --name='jupyter-example-profile' --rm --interactive --tty --publish 8888:8888 --volume ${WORKDIR}:/home/jovyan jupyter-example-profile ``` Copy and paste the displayed link to your favorite browser. -- GitLab