[Docker] Docker Jupyter Notebook

less than 1 minute read


Docker Jupyter Notebook

docker container run \
-it \
-d \
-p 8877:8888 \
-e LC_ALL=C.UTF-8 \
-e GRANT_SUDO=yes \
--name jupyter \
jupyter/base-notebook:latest

docker container run \
-it \
-d \
-p 8877:8888 \
-e LC_ALL=C.UTF-8 \
-e GRANT_SUDO=yes \
--name jupyter_pdd \
-v $(pwd):/home/jovyan/work \
jupyter/base-notebook:latest

# get inside container as jovyan
docker container exec -it jupyter bash

# get inside container as root
docker container exec -it -u root jupyter bash