logo
docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
linux/amd64 docker.io 已验证 · Pytorch

PyTorch是一个深度学习框架,旨在简化机器学习算法的实现和部署。该镜像提供了一个基于Python 3.x的环境,可以用于快速启动和测试PyTorch项目。

1423
浏览次数
6.13GB
镜像大小
源镜像
docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
镜像ID
sha256:7093c5bbc730d79f994f35834116bbc21a13190509d76a213aab029686dba34d
镜像 TAG
2.5.0-cuda12.4-cudnn9-runtime
镜像大小
6.13GB
平台架构
linux/amd64
镜像源
docker.io
CMD
/bin/bash
启动入口
工作目录
/workspace
OS/平台
linux/amd64
镜像创建
2024-10-17T16:29:36.16462338Z
同步时间
2024-11-06 01:38
浏览量
1423 次
贡献者
⚙️ 环境变量 5
KeyValue
PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 0
NVIDIA_VISIBLE_DEVICES=all 1
NVIDIA_DRIVER_CAPABILITIES=compute,utility 2
LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64 3
PYTORCH_VERSION=2.5.0 4
🏷️ 镜像标签 3
KeyValue
nvidia_driver com.nvidia.volumes.needed
ubuntu org.opencontainers.image.ref.name
22.04 org.opencontainers.image.version
🛡️ 镜像安全扫描
ubuntu 22.04 Trivy 2024-11-06 01:39 查看完整报告
67
低危 LOW
691
中危 MEDIUM
0
高危 HIGH
0
严重 CRITICAL
受影响目标 (2)
docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime (ubuntu 22.04) ubuntu Python python-pkg

Docker拉取命令

docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime  docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime

Containerd拉取命令

ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime
ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime  docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime

Shell快速替换命令

sed -i 's#pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime#' deployment.yaml

Ansible快速分发-Docker

#ansible k8s -m shell -a 'docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime  docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime'

Ansible快速分发-Containerd

#ansible k8s -m shell -a 'ctr images pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime  docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime'

镜像构建历史


# 2024-10-18 00:29:36  0.00B 设置工作目录为/workspace
WORKDIR /workspace
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 PYTORCH_VERSION
ENV PYTORCH_VERSION=2.5.0
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 PATH
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
                        
# 2024-10-18 00:29:36  0.00B 设置环境变量 PATH
ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-10-18 00:29:36  0.00B 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.5.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.4.1 /bin/sh -c if test -n "${TRITON_VERSION}" -a "${TARGETPLATFORM}" != "linux/arm64"; then         DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends gcc;         rm -rf /var/lib/apt/lists/*;     fi # buildkit
                        
# 2024-10-18 00:29:35  6.03GB 复制新文件或目录到容器中
COPY /opt/conda /opt/conda # buildkit
                        
# 2024-10-18 00:25:47  25.99MB 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.5.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.4.1 /bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         ca-certificates         libjpeg-dev         libpng-dev         && rm -rf /var/lib/apt/lists/* # buildkit
                        
# 2024-10-18 00:25:47  0.00B 添加元数据标签
LABEL com.nvidia.volumes.needed=nvidia_driver
                        
# 2024-10-18 00:25:47  0.00B 定义构建参数
ARG CUDA_VERSION=12.4.1
                        
# 2024-10-18 00:25:47  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2024-10-18 00:25:47  0.00B 定义构建参数
ARG TRITON_VERSION=
                        
# 2024-10-18 00:25:47  0.00B 定义构建参数
ARG PYTORCH_VERSION=2.5.0
                        
# 2024-09-12 00:25:18  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2024-09-12 00:25:17  77.86MB 
/bin/sh -c #(nop) ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in / 
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2024-09-12 00:25:16  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:7093c5bbc730d79f994f35834116bbc21a13190509d76a213aab029686dba34d",
    "RepoTags": [
        "pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime"
    ],
    "RepoDigests": [
        "pytorch/pytorch@sha256:f785805521b2f224f5b6ce422a3e6f9cd581aca06599885f45902a7ea45791f6",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch@sha256:f785805521b2f224f5b6ce422a3e6f9cd581aca06599885f45902a7ea45791f6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-10-17T16:29:36.16462338Z",
    "Container": "",
    "ContainerConfig": null,
    "DockerVersion": "",
    "Author": "",
    "Config": {
        "Hostname": "",
        "Domainname": "",
        "User": "",
        "AttachStdin": false,
        "AttachStdout": false,
        "AttachStderr": false,
        "Tty": false,
        "OpenStdin": false,
        "StdinOnce": false,
        "Env": [
            "PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
            "NVIDIA_VISIBLE_DEVICES=all",
            "NVIDIA_DRIVER_CAPABILITIES=compute,utility",
            "LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64",
            "PYTORCH_VERSION=2.5.0"
        ],
        "Cmd": [
            "/bin/bash"
        ],
        "Image": "",
        "Volumes": null,
        "WorkingDir": "/workspace",
        "Entrypoint": null,
        "OnBuild": null,
        "Labels": {
            "com.nvidia.volumes.needed": "nvidia_driver",
            "org.opencontainers.image.ref.name": "ubuntu",
            "org.opencontainers.image.version": "22.04"
        }
    },
    "Architecture": "amd64",
    "Os": "linux",
    "Size": 6130306510,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/a9c63624e0405c6f5a46429f447cd6b76d517449a0b50718621c69b94d9a3048/diff:/var/lib/docker/overlay2/d6b8331c7a7f6d6a4faa8a93433a9932a28a66c5e5fcdde3428047af395f69ec/diff:/var/lib/docker/overlay2/5ec8ff3022943a4df8819981b0ae90ca2437bc3f56f3bb6a941b1c58ae83d6a3/diff:/var/lib/docker/overlay2/4cfb2ff6eb670d08d805fcc326973c76acabc424b2f6ce5f1903149f34750452/diff",
            "MergedDir": "/var/lib/docker/overlay2/253233eb5f3aa2bd6a633b8092cf70942da4410f15718a73f189d0e55853f74c/merged",
            "UpperDir": "/var/lib/docker/overlay2/253233eb5f3aa2bd6a633b8092cf70942da4410f15718a73f189d0e55853f74c/diff",
            "WorkDir": "/var/lib/docker/overlay2/253233eb5f3aa2bd6a633b8092cf70942da4410f15718a73f189d0e55853f74c/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:2573e0d8158209ed54ab25c87bcdcb00bd3d2539246960a3d592a1c599d70465",
            "sha256:947837e41ba9bcb03ce3c0c5c60dc0c2a066acf19b65eaa21b6a05af6455b327",
            "sha256:9c616ca8a8d7e4972b47187e2081e773794638aa6e58f20eca9650572feecf2e",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:dc86019bb5a5fa2d54f3b373705f33f6aca3e67f7a65a83ab37918fac1273738"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-11-06T01:30:10.00203685+08:00"
    }
}

更多版本

docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-runtime

linux/amd64 docker.io7.71GB2024-07-18 11:25
10055

docker.io/pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime

linux/amd64 docker.io6.48GB2024-07-26 13:31
4443

docker.io/pytorch/pytorch:2.3.0-cuda12.1-cudnn8-devel

linux/amd64 docker.io17.08GB2024-08-06 11:11
2521

docker.io/pytorch/pytorch:2.4.1-cuda12.4-cudnn9-runtime

linux/amd64 docker.io5.99GB2024-09-21 01:42
4635

docker.io/pytorch/pytorch:2.2.1-cuda12.1-cudnn8-runtime

linux/amd64 docker.io7.60GB2024-09-25 04:29
2730

docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime

linux/amd64 docker.io6.36GB2024-09-28 00:59
1992

docker.io/pytorch/pytorch:2.1.0-cuda11.8-cudnn8-devel

linux/amd64 docker.io17.39GB2024-10-02 00:43
2608

docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-devel

linux/amd64 docker.io13.63GB2024-10-23 00:32
1854

docker.io/pytorch/pytorch:2.0.1-cuda11.7-cudnn8-devel

linux/amd64 docker.io13.17GB2024-11-01 00:22
1777

docker.io/pytorch/pytorch:2.5.1-cuda12.4-cudnn9-devel

linux/amd64 docker.io13.31GB2024-11-06 01:09
2725

docker.io/pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime

linux/amd64 docker.io6.14GB2024-11-06 01:24
4514

docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-runtime

linux/amd64 docker.io6.13GB2024-11-06 01:38
1422

docker.io/pytorch/pytorch:2.5.0-cuda12.4-cudnn9-devel

linux/amd64 docker.io13.30GB2024-11-06 01:51
1521

docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-runtime

linux/amd64 docker.io5.90GB2024-11-07 00:14
2936

docker.io/pytorch/pytorch:2.3.1-cuda11.8-cudnn8-runtime

linux/amd64 docker.io8.17GB2024-11-08 00:19
2828

docker.io/pytorch/pytorch:2.3.1-cuda12.1-cudnn8-devel

linux/amd64 docker.io17.08GB2024-11-08 00:39
1552

docker.io/pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel

linux/amd64 docker.io17.52GB2024-11-08 01:12
2153

docker.io/pytorch/pytorch:2.1.2-cuda11.8-cudnn8-devel

linux/amd64 docker.io17.33GB2024-12-10 00:33
1017

docker.io/pytorch/pytorch:2.2.0-cuda12.1-cudnn8-devel

linux/amd64 docker.io16.99GB2024-12-15 00:21
1642

docker.io/pytorch/pytorch:2.1.2-cuda12.1-cudnn8-devel

linux/amd64 docker.io16.58GB2024-12-20 00:05
1587

docker.io/pytorch/pytorch:2.1.2-cuda12.1-cudnn8-runtime

linux/amd64 docker.io7.22GB2025-01-10 00:32
1452

docker.io/pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel

linux/amd64 docker.io13.10GB2025-01-11 00:22
1596

docker.io/pytorch/pytorch:2.2.2-cuda11.8-cudnn8-devel

linux/amd64 docker.io17.74GB2025-01-18 01:16
1522

docker.io/pytorch/pytorch:2.2.1-cuda11.8-cudnn8-devel

linux/amd64 docker.io17.70GB2025-02-18 00:39
713

docker.io/pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel

linux/amd64 docker.io13.16GB2025-02-18 01:17
2649

docker.io/pytorch/pytorch:2.6.0-cuda12.4-cudnn9-runtime

linux/amd64 docker.io6.06GB2025-02-27 00:51
3199

docker.io/pytorch/pytorch:2.5.1-cuda12.1-cudnn9-devel

linux/amd64 docker.io12.84GB2025-02-28 02:38
2599

docker.io/pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel

linux/amd64 docker.io13.23GB2025-03-08 01:36
2737

docker.io/pytorch/pytorch:1.11.0-cuda11.3-cudnn8-devel

linux/amd64 docker.io13.71GB2025-03-18 02:23
1235

docker.io/pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel

linux/amd64 docker.io16.56GB2025-04-15 01:43
768

docker.io/pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime

linux/amd64 docker.io7.70GB2025-04-25 04:37
3103

docker.io/pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel

linux/amd64 docker.io7.04GB2025-04-28 16:22
953

docker.io/pytorch/pytorch:2.5.1-cuda11.8-cudnn9-runtime

linux/amd64 docker.io6.32GB2025-05-07 02:16
1293

docker.io/pytorch/pytorch:latest

linux/amd64 docker.io7.60GB2025-05-14 01:17
1916

docker.io/pytorch/pytorch:2.7.0-cuda12.8-cudnn9-devel

linux/amd64 docker.io16.99GB2025-05-22 02:12
1367

docker.io/pytorch/pytorch:2.7.1-cuda12.8-cudnn9-runtime

linux/amd64 docker.io7.60GB2025-07-02 00:58
2317

docker.io/pytorch/pytorch:2.7.1-cuda12.8-cudnn9-devel

linux/amd64 docker.io16.89GB2025-07-18 04:22
1692

docker.io/pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime

linux/amd64 docker.io7.70GB2025-07-24 01:22
1013

docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime

linux/amd64 docker.io5.93GB2025-07-24 02:12
1159

docker.io/pytorch/pytorch:2.7.1-cuda11.8-cudnn9-runtime

linux/amd64 docker.io6.48GB2025-08-05 01:42
896

docker.io/pytorch/pytorch:2.8.0-cuda12.9-cudnn9-devel

linux/amd64 docker.io18.46GB2025-08-28 02:21
1921

docker.io/pytorch/pytorch:2.8.0-cuda12.8-cudnn9-devel

linux/amd64 docker.io16.93GB2025-09-11 01:44
1271

docker.io/pytorch/pytorch:2.7.1-cuda11.8-cudnn9-devel

linux/amd64 docker.io13.76GB2025-10-12 02:59
645

docker.io/pytorch/pytorch:2.8.0-cuda12.8-cudnn9-runtime

linux/amd64 docker.io7.69GB2025-10-25 00:53
1442

docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-devel

linux/amd64 docker.io12.86GB2025-11-01 00:22
726

docker.io/pytorch/pytorch:2.9.0-cuda13.0-cudnn9-runtime

linux/amd64 docker.io5.68GB2025-11-06 02:58
1355

docker.io/pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel

linux/amd64 docker.io18.57GB2025-11-10 00:45
408

docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime

linux/amd64 docker.io8.06GB2025-11-22 01:41
712

docker.io/pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime

linux/amd64 docker.io7.20GB2025-12-04 00:11
616

docker.io/pytorch/pytorch:2.8.0-cuda12.9-cudnn9-runtime

linux/amd64 docker.io8.38GB2025-12-10 01:22
626

docker.io/pytorch/pytorch:2.9.1-cuda12.8-cudnn9-runtime

linux/amd64 docker.io7.97GB2025-12-12 00:37
1301

docker.io/pytorch/pytorch:2.9.1-cuda12.8-cudnn9-devel

linux/amd64 docker.io17.21GB2025-12-12 01:02
1410

docker.io/pytorch/pytorch:2.7.0-cuda12.6-cudnn9-runtime

linux/amd64 docker.io6.35GB2025-12-13 01:45
747

docker.io/pytorch/pytorch:1.7.1-cuda11.0-cudnn8-devel

linux/amd64 docker.io12.86GB2025-12-16 01:48
637

docker.io/pytorch/pytorch:1.7.0-cuda11.0-cudnn8-devel

linux/amd64 docker.io11.97GB2025-12-16 02:38
373

docker.io/pytorch/pytorch:2.9.1-cuda12.6-cudnn9-runtime

linux/amd64 docker.io7.12GB2026-01-11 00:39
567

docker.io/pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel

linux/amd64 docker.io16.47GB2026-01-21 01:16
428

docker.io/pytorch/pytorch:2.6.0-cuda11.8-cudnn9-devel

linux/amd64 docker.io13.52GB2026-02-28 02:06
251

docker.io/pytorch/pytorch:2.10.0-cuda12.8-cudnn9-devel

linux/amd64 docker.io17.09GB2026-03-11 02:39
424

docker.io/pytorch/pytorch:2.9.1-cuda13.0-cudnn9-devel

linux/amd64 docker.io12.94GB2026-03-20 02:29
461

docker.io/pytorch/pytorch:2.7.1-cuda12.6-cudnn9-devel

linux/amd64 docker.io13.44GB2026-04-21 02:09
213

docker.io/pytorch/pytorch:2.4.0-cuda12.4-cudnn9-devel

linux/amd64 docker.io14.96GB2026-04-21 02:15
237

docker.io/pytorch/pytorch:2.11.0-cuda12.6-cudnn9-devel

linux/amd64 docker.io21.29GB2026-04-30 03:39
310

docker.io/pytorch/pytorch:2.11.0-cuda12.6-cudnn9-runtime

linux/amd64 docker.io7.06GB2026-04-30 03:55
247

docker.io/pytorch/pytorch:1.12.1-cuda11.3-cudnn8-devel

linux/amd64 docker.io14.06GB2026-06-06 02:30
56

docker.io/pytorch/pytorch:2.11.0-cuda13.0-cudnn9-runtime

linux/amd64 docker.io5.59GB2026-06-11 04:30
58
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×