Skip to content

Instantly share code, notes, and snippets.

@ijaketak
Created July 2, 2019 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijaketak/dbfc3916d989fe6238f25077697a0ed9 to your computer and use it in GitHub Desktop.
Save ijaketak/dbfc3916d989fe6238f25077697a0ed9 to your computer and use it in GitHub Desktop.
JupyterLab with nvidia runtime
# https://qiita.com/hoto17296/items/be34849412e7ae9db6ff
version: '2.3'
services:
jupyterlab:
image: continuumio/anaconda3
runtime: nvidia
command: >-
jupyter lab
--no-browser
--port=8888
--ip=0.0.0.0
--allow-root
--NotebookApp.token=''
--notebook-dir=/opt/nb
volumes:
- .:/opt/nb
ports:
- 127.0.0.1:8888:8888
environment:
NVIDIA_VISIBLE_DEVICES: '0' # all
NVIDIA_DRIVER_CAPABILITIES: compute,graphics,utility,video
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment