Starlight-0208 93b7643e3b Added some Dockerfiles
optimized the directory structure
2023-08-22 15:37:10 +08:00

19 lines
894 B
Plaintext

Before building the image, please switch the working directory to the directory where the corresponding version Dockerfile resides
build image by shell:
docker build -t <author>/jupyter:<tag>
run container:
- First Method
docker volume create jupyter
docker run -itd --name jupyter -p 8888:8888 -v jupyter:/jupyter <author>/jupyter:<tag>
- Second Method
docker run -itd --name jupyter -p 8888:8888 -v /path/to/save:/jupyter <author>/jupyter:<tag>
Version
------
Jupyter Lab:
- / : Jupyter Lab servers built on Ubuntu, run as non-root users.
Jupyter Notebook:
- /Alpine-NonRoot : Jupyter Notebook server built on Alpine Linux, running with non-root users (`notebook`), this build is relatively secure.
- /Alpine-Root : Jupyter Notebook server built on Alpine Linux, running as Root user, this build is recommended only for testing or learning environments deployed on an Intranet.