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

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

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

源镜像 docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime
国内镜像 swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime
镜像ID sha256:d4fb707a1b5f98ac29746cd6eceb94c4de567d4187938ec6720d6a2c7d93bf09
镜像TAG 2.4.1-cuda12.1-cudnn9-runtime
大小 5.93GB
镜像源 docker.io
项目信息 Docker-Hub主页 🚀项目TAG 🚀
CMD /bin/bash
启动入口
工作目录 /workspace
OS/平台 linux/amd64
浏览量 18 次
贡献者
镜像创建 2024-09-04T19:54:48.842135431Z
同步时间 2025-07-24 02:12
更新时间 2025-07-26 00:32
环境变量
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.1
镜像标签
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.1-cuda12.1-cudnn9-runtime
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime  docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime

Containerd拉取命令

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

Shell快速替换命令

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

镜像构建历史


# 2024-09-05 03:54:48  0.00B 设置工作目录为/workspace
WORKDIR /workspace
                        
# 2024-09-05 03:54:48  0.00B 设置环境变量 PYTORCH_VERSION
ENV PYTORCH_VERSION=2.4.1
                        
# 2024-09-05 03:54:48  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-09-05 03:54:48  0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
                        
# 2024-09-05 03:54:48  0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
                        
# 2024-09-05 03:54:48  0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
                        
# 2024-09-05 03:54:48  0.00B 设置环境变量 PATH
ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
                        
# 2024-09-05 03:54:48  0.00B 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.1 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-09-05 03:54:48  5.82GB 复制新文件或目录到容器中
COPY /opt/conda /opt/conda # buildkit
                        
# 2024-09-05 03:51:20  25.96MB 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.1 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-09-05 03:51:20  0.00B 添加元数据标签
LABEL com.nvidia.volumes.needed=nvidia_driver
                        
# 2024-09-05 03:51:20  0.00B 定义构建参数
ARG CUDA_VERSION=12.1.1
                        
# 2024-09-05 03:51:20  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2024-09-05 03:51:20  0.00B 定义构建参数
ARG TRITON_VERSION=
                        
# 2024-09-05 03:51:20  0.00B 定义构建参数
ARG PYTORCH_VERSION=2.4.1
                        
# 2024-08-13 17:27:24  0.00B 
/bin/sh -c #(nop)  CMD ["/bin/bash"]
                        
# 2024-08-13 17:27:24  77.86MB 
/bin/sh -c #(nop) ADD file:2f8a54a5efd080fb81efea702b4e3e07d946eec7563fb2281bd28950c10ec462 in / 
                        
# 2024-08-13 17:27:22  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.version=22.04
                        
# 2024-08-13 17:27:22  0.00B 
/bin/sh -c #(nop)  LABEL org.opencontainers.image.ref.name=ubuntu
                        
# 2024-08-13 17:27:22  0.00B 
/bin/sh -c #(nop)  ARG LAUNCHPAD_BUILD_ARCH
                        
# 2024-08-13 17:27:22  0.00B 
/bin/sh -c #(nop)  ARG RELEASE
                        
                    

镜像信息

{
    "Id": "sha256:d4fb707a1b5f98ac29746cd6eceb94c4de567d4187938ec6720d6a2c7d93bf09",
    "RepoTags": [
        "pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda12.1-cudnn9-runtime"
    ],
    "RepoDigests": [
        "pytorch/pytorch@sha256:ac7c098a81512e719afa5d2d497f812d7db3498f340a4b819c69cb7b3b257126",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch@sha256:ac7c098a81512e719afa5d2d497f812d7db3498f340a4b819c69cb7b3b257126"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-09-04T19:54:48.842135431Z",
    "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.1"
        ],
        "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": 5928234824,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/c4da30c9912d50c2032f76c039bda56f0ad8d14e39cde51da3539d655daf8f8e/diff:/var/lib/docker/overlay2/4a93c47158dc6f4b4887b186678e9e1fb173bd098ce066fd6d39f43aa9bd2d9f/diff:/var/lib/docker/overlay2/ed47312de2201d19743d2d65a2a7ad212b9235c6d10666ee4bd3dd5fdcf99167/diff:/var/lib/docker/overlay2/882e7b3528313fab20781b85b9809801d277371b8ec812271c547caf66476243/diff",
            "MergedDir": "/var/lib/docker/overlay2/2415a7c68d75b6d63588450fa14f08dad7f3c36745b85a6b51e566fc4a69e858/merged",
            "UpperDir": "/var/lib/docker/overlay2/2415a7c68d75b6d63588450fa14f08dad7f3c36745b85a6b51e566fc4a69e858/diff",
            "WorkDir": "/var/lib/docker/overlay2/2415a7c68d75b6d63588450fa14f08dad7f3c36745b85a6b51e566fc4a69e858/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1b9b7346fee7abbc7f5538eaa23548bd05a45abe8daf6794024be0c8ad7d60bb",
            "sha256:4bb9866c8bebbef7b4dc3d0c5c59c166431ccd43811a24d2ba81a27f7015331d",
            "sha256:1fab12a34419b2a943e58d22e3bb71d89d2545ab683d2e65fe4f4a76e2ef2ca2",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:c72b361064303e50e145c46c5f7e79b80cd632777e85fe69bf50a0f33ed44d9c"
        ]
    },
    "Metadata": {
        "LastTagTime": "2025-07-24T02:05:26.131399036+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

docker.io/pytorch/pytorch:latest

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

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

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

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

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

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

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

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

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

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

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