Skip to content

Ready-to-run Docker images containing Jupyter applications with CUDA.

License

Notifications You must be signed in to change notification settings

djylb/docker-stacks-cuda

 
 

Repository files navigation

Jupyter Docker Stacks with NVIDIA GPU

本项目基于原有的Jupyter Docker Stacks项目,添加了常用工具和对NVIDIA GPU的支持,便于开箱即用。

快速开始

在使用本项目之前,您需要参考NVIDIA的教程来配置环境(假设您已安装好GPU驱动和Docker环境,如未配置,请先行配置)。

容器说明

详细信息请参考Jupyter Docker Stacks官方文档。以下是本项目提供的Docker镜像:

使用示例

# 临时使用
docker run --gpus all --ipc=host -it --rm -p 10000:8888 -v "${PWD}":/home/duan/work duan2001/npl-notebook
# 查看登录token
jupyter server list

# 后台运行
docker run --gpus all -d --shm-size="8g" -p <开放的端口>:8888 --name=jupyter --restart=unless-stopped -v <外部存储路径>:/home/duan/work -e GRANT_SUDO=yes --user root duan2001/npl-notebook
# 查看登录token
docker exec jupyter jupyter server list

补充说明

  • 如需指定某几个GPU请参考文档
  • 另外--ipc=host参数可能存在安全隐患,建议对外开放时使用--shm-size="8g"(数字为共享内存大小)。

其他信息

请参考原始项目的官方说明。如果您已经安装了Docker,知道您想使用哪个Docker镜像,并且想在容器中启动单个Jupyter应用程序,下面的例子可以帮助您开始。

Jupyter Docker Stacks 用户指南详细描述了其他用法和特性。

Resources

Contributing

Please see the Contributor Guide on ReadTheDocs for information about how to contribute recipes, features, tests, and community-maintained stacks.

Alternatives

About

Ready-to-run Docker images containing Jupyter applications with CUDA.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.9%
  • Dockerfile 14.8%
  • Shell 12.4%
  • Jupyter Notebook 4.3%
  • Makefile 2.6%