Skip to content

Commit

Permalink
removed root user
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimbers committed Feb 10, 2022
1 parent 0cd9e36 commit f448152
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 0 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ RUN conda install --yes --quiet --channel conda-forge \
# Install JupyterLab Git Extension
RUN pip install jupyterlab-git

# change to root user
USER root

# Create working directory for mounting volumes
RUN mkdir -p /opt/notebooks

Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Simple single-user container image for:
## Quickstart usage:

```
docker run --rm --user root -v $(pwd):/opt/notebooks -p 8888:8888 ubcdsci/jupyterlab
docker run --rm -v $(pwd):/opt/notebooks -p 8888:8888 ubcdsci/jupyterlab
```

## Documentation
Expand All @@ -19,5 +19,3 @@ The Jupyter Lab working directory is set to `/opt/notebooks`,
so volumes should be mounted there to be accessible via the container's Jupyter Lab.

The port exposed is `8888`. When the container is run, users need to copy the URL that looks like `http://127.0.0.1:8888/lab?token=d9704724bf0267d3d9262698ffbb88123633f8c8f4b1a305` into their web browser to access Jupyter Lab.

`--user root` is currently needed when running the container for mounting volumes. This may be removed in future versions.

0 comments on commit f448152

Please sign in to comment.