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

docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime - 国内下载镜像源 浏览次数:17 安全受验证的发布者-Pytorch

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

源镜像 docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime
镜像ID sha256:5dba57bc62dcbcd23e9924e9236017a6f0577df6d8c59e361d63a011eb53b950
镜像TAG 2.4.0-cuda12.1-cudnn9-runtime
大小 8.06GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/bash
启动入口
工作目录 /workspace
OS/平台 linux/amd64
浏览量 17 次
贡献者 34*****1@qq.com
镜像创建 2024-07-24T18:49:32.106781942Z
同步时间 2025-11-22 01:41
更新时间 2025-11-23 04:00
环境变量
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.4.0
镜像标签
nvidia_driver: com.nvidia.volumes.needed ubuntu: org.opencontainers.image.ref.name 22.04: org.opencontainers.image.version

Docker拉取命令

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

Containerd拉取命令

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

Shell快速替换命令

sed -i 's#pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime#swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.0-cuda12.1-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.4.0-cuda12.1-cudnn9-runtime && docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime  docker.io/pytorch/pytorch:2.4.0-cuda12.1-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.4.0-cuda12.1-cudnn9-runtime && ctr images tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime  docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime'

镜像构建历史


# 2024-07-25 02:49:32  0.00B 设置工作目录为/workspace
WORKDIR /workspace
                        
# 2024-07-25 02:49:32  0.00B 设置环境变量 PYTORCH_VERSION
ENV PYTORCH_VERSION=2.4.0
                        
# 2024-07-25 02:49:32  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-07-25 02:49:32  0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
                        
# 2024-07-25 02:49:32  0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
                        
# 2024-07-25 02:49:32  0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
                        
# 2024-07-25 02:49:32  0.00B 设置环境变量 PATH
ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-07-25 02:49:32  0.00B 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.1.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-07-25 02:49:31  7.95GB 复制新文件或目录到容器中
COPY /opt/conda /opt/conda # buildkit
                        
# 2024-07-25 02:42:21  25.98MB 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.0 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=12.1.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-07-25 02:42:21  0.00B 添加元数据标签
LABEL com.nvidia.volumes.needed=nvidia_driver
                        
# 2024-07-25 02:42:21  0.00B 定义构建参数
ARG CUDA_VERSION=12.1.1
                        
# 2024-07-25 02:42:21  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2024-07-25 02:42:21  0.00B 定义构建参数
ARG TRITON_VERSION=
                        
# 2024-07-25 02:42:21  0.00B 定义构建参数
ARG PYTORCH_VERSION=2.4.0
                        
# 2024-06-28 04:10:12  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2024-06-28 04:10:12  77.86MB 
/bin/sh -c #(nop) ADD file:d5da92199726e42da09a6f75a778befb607fe3f79e4afaf7ef5188329b26b386 in / 
                        
# 2024-06-28 04:10:10  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2024-06-28 04:10:10  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2024-06-28 04:10:10  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2024-06-28 04:10:10  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:5dba57bc62dcbcd23e9924e9236017a6f0577df6d8c59e361d63a011eb53b950",
    "RepoTags": [
        "pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime"
    ],
    "RepoDigests": [
        "pytorch/pytorch@sha256:68c022c2f4627943a6f3e574cfd2c8ae4256210d5f66ae2b117942e0a8d4fa9d",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch@sha256:68c022c2f4627943a6f3e574cfd2c8ae4256210d5f66ae2b117942e0a8d4fa9d"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-07-24T18:49:32.106781942Z",
    "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.4.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": 8058818867,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/8e27baca8e6dcb113b982cb2dda1231b4f510fdd4217c24807efc3897929f944/diff:/var/lib/docker/overlay2/efb3be0216298743f034345a409102712dbcd7ff927958a3e9770aa565f43713/diff:/var/lib/docker/overlay2/eefe03830fe1afaa36078b1a91f03c59d4431f1aeff12c4ec4650ae49d322d75/diff:/var/lib/docker/overlay2/a87f4e197f50eba5d3c155f8f71198b5efc5a79a132e68b6fdd236bf36dd0a45/diff",
            "MergedDir": "/var/lib/docker/overlay2/0fb15cf9d9fc8146973f3a4110eefbc186f4509002a956e5752a5e4f1af6833e/merged",
            "UpperDir": "/var/lib/docker/overlay2/0fb15cf9d9fc8146973f3a4110eefbc186f4509002a956e5752a5e4f1af6833e/diff",
            "WorkDir": "/var/lib/docker/overlay2/0fb15cf9d9fc8146973f3a4110eefbc186f4509002a956e5752a5e4f1af6833e/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:931b7ff0cb6f494b27d31a4cbec3efe62ac54676add9c7469560302f1541ecaf",
            "sha256:30dcd5721792d8bb67d47c6a56b2e7a8e87f1b831c7f6580df4cd7c22e15ed71",
            "sha256:cc39e0496a4123fb189d015e63aba8cae4c3ce0dfdf6a72277bc2e115b6f9596",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:7f485e414f60aa050600eedefc3f64df21a7fef3109eab81a76176044a2fbaf2"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-11-22T01:33:08.422612863+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

docker.io/pytorch/pytorch:latest

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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