
pure/python本镜像基于Python官方Docker镜像构建,并集成了NVIDIA提供的CUDA和cuDNN组件,旨在为需要GPU加速的Python应用提供便捷的运行环境。
下载并使用本镜像即表示您同意镜像中包含的NVIDIA软件的许可协议。
查看本镜像中包含的CUDA Toolkit许可协议,请点击此处。
查看本镜像中包含的cuDNN Toolkit许可协议,请点击此处。
运行本镜像需要安装NVIDIA Container Runtime(nvidia-docker)。
pure/python:3.8-cuda10.2-base (10.2/base/Dockerfile)pure/python:3.8-cuda10.2-runtime (10.2/runtime/Dockerfile)pure/python:3.8-cuda10.2-cudnn7-runtime (10.2/runtime/cudnn7/Dockerfile)pure/python:3.8-cuda10.1-base (10.1/base/Dockerfile)pure/python:3.8-cuda10.1-runtime (10.1/runtime/Dockerfile)pure/python:3.8-cuda10.1-cudnn7-runtime (10.1/runtime/cudnn7/Dockerfile)pure/python:3.8-cuda10.0-base (10.0/base/Dockerfile)pure/python:3.8-cuda10.0-runtime (10.0/runtime/Dockerfile)pure/python:3.8-cuda10.0-cudnn7-runtime (10.0/runtime/cudnn7/Dockerfile)pure/python:3.8-cuda9.0-base (9.0/base/Dockerfile)pure/python:3.8-cuda9.0-runtime (9.0/runtime/Dockerfile)pure/python:3.8-cuda9.0-cudnn7-runtime (9.0/runtime/cudnn7/Dockerfile)pure/python:3.7-cuda10.2-base (10.2/base/Dockerfile)pure/python:3.7-cuda10.2-runtime (10.2/runtime/Dockerfile)pure/python:3.7-cuda10.2-cudnn7-runtime (10.2/runtime/cudnn7/Dockerfile)pure/python:3.7-cuda10.1-base (10.1/base/Dockerfile)pure/python:3.7-cuda10.1-runtime (10.1/runtime/Dockerfile)pure/python:3.7-cuda10.1-cudnn7-runtime (10.1/runtime/cudnn7/Dockerfile)pure/python:3.7-cuda10.0-base (10.0/base/Dockerfile)pure/python:3.7-cuda10.0-runtime (10.0/runtime/Dockerfile)pure/python:3.7-cuda10.0-cudnn7-runtime (10.0/runtime/cudnn7/Dockerfile)pure/python:3.7-cuda9.0-base (9.0/base/Dockerfile)pure/python:3.7-cuda9.0-runtime (9.0/runtime/Dockerfile)pure/python:3.7-cuda9.0-cudnn7-runtime (9.0/runtime/cudnn7/Dockerfile)pure/python:3.6-cuda10.2-base (10.2/base/Dockerfile)pure/python:3.6-cuda10.2-runtime (10.2/runtime/Dockerfile)pure/python:3.6-cuda10.2-cudnn7-runtime (10.2/runtime/cudnn7/Dockerfile)pure/python:3.6-cuda10.1-base (10.1/base/Dockerfile)pure/python:3.6-cuda10.1-runtime (10.1/runtime/Dockerfile)pure/python:3.6-cuda10.1-cudnn7-runtime (10.1/runtime/cudnn7/Dockerfile)pure/python:3.6-cuda10.0-base (10.0/base/Dockerfile)pure/python:3.6-cuda10.0-runtime (10.0/runtime/Dockerfile)pure/python:3.6-cuda10.0-cudnn7-runtime (10.0/runtime/cudnn7/Dockerfile)pure/python:3.6-cuda9.0-base (9.0/base/Dockerfile)pure/python:3.6-cuda9.0-runtime (9.0/runtime/Dockerfile)pure/python:3.6-cuda9.0-cudnn7-runtime (9.0/runtime/cudnn7/Dockerfile)确保已安装NVIDIA Container Runtime。
使用以下命令启动包含Python 3.8和CUDA 10.2的运行时镜像:
bashdocker run --gpus all pure/python:3.8-cuda10.2-runtime python --version
在容器内执行以下Python代码验证CUDA是否正常工作:
bashdocker run --gpus all pure/python:3.8-cuda10.2-cudnn7-runtime python -c "import torch; print(torch.cuda.is_available())"
若输出为True,表示CUDA环境配置成功。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务