Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 2.66 KB

README.md

File metadata and controls

70 lines (49 loc) · 2.66 KB

License: MIT Docker Cloud Build Status Docker Pulls

Jupyterlab Docker container

This Docker container runs as root user! It can be helpful when e.g. the popular jupyter/datascience-notebook image does not work because it runs as Jovyan user.

Installed Jupyterlab extensions

Your notebooks

Volumes can be mounted into /notebooks folder. If the folder contains a requirements.txt file, it will be installed automatically when the container starts up.


Pull/Update to latest version

docker pull amalic/jupyterlab:latest

Run

docker run --rm -it -p 8888:8888 amalic/jupyterlab

or if you want to define your own password

docker run --rm -it -p 8888:8888 -e PASSWORD="<your_secret>" amalic/jupyterlab

The container will install requirements from files present at the root of the repository at docker run (in this order):

  • packages.txt: install apt-get packages
  • requirements.txt: install pip packages
  • extensions.txt: install Jupyterlab extensions

Run from Git repository

You can provide a Git repository to be cloned in /notebooks when doing docker run

docker run --rm -it -p 8888:8888 -v /data/jupyterlab-notebooks:/notebooks -e PASSWORD="<your_secret>" -e GIT_URL="https://github.com/vemonet/translator-sparql-notebook" amalic/jupyterlab:latest

Access on http://localhost:8888 and files shared in /data/jupyterlab-notebooks

or use the current directory as source code in the container:

docker run --rm -it -p 8888:8888 -v $(pwd):/notebooks -e PASSWORD="<your_secret>" amalic/jupyterlab:latest

Use ${pwd} for Windows

Build from source

docker build -t amalic/jupyterlab .