Skip to content

Instantly share code, notes, and snippets.

@haochunchang
Created November 15, 2018 01:49
Show Gist options
  • Save haochunchang/dc1076c8f5b171911e3883cef78fe4ce to your computer and use it in GitHub Desktop.
Save haochunchang/dc1076c8f5b171911e3883cef78fe4ce to your computer and use it in GitHub Desktop.
Connect to jupyterlab in docker
# docker run -v [host dir:container dir] -it -p [port:docker_port] --name="container name" IMAGE COMMAND
docker run -v ~/Desktop/:/home/ -it -p 8888:8888 --name="test" jr55662003/jupyterlab-dev:latest jupyter lab --allow-root --ip=0.0.0.0
# Access jupyter lab through local docker
# 1. run ``juptyer lab --allow-root --ip=0.0.0.0`` in docker
# 2. go to browser and enter localhost:[port]
# 3. login with tokens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment