logo
docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime
linux/amd64 docker.io 已验证 · Pytorch

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

2027
浏览次数
6.36GB
镜像大小
源镜像
docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime
国内镜像
swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime
镜像ID
sha256:8a0d0afe14cb52fb29bbf8c7bbf835922733f181232f5bd87be8b9ac1ded12cf
镜像 TAG
2.4.1-cuda11.8-cudnn9-runtime
镜像大小
6.36GB
平台架构
linux/amd64
镜像源
docker.io
CMD
/bin/bash
启动入口
工作目录
/workspace
OS/平台
linux/amd64
镜像创建
2024-09-04T19:54:58.968969594Z
同步时间
2024-09-28 00:59
浏览量
2027 次
贡献者
⚙️ 环境变量 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.4.1 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-10-27 02:27 查看完整报告
71
低危 LOW
904
中危 MEDIUM
5
高危 HIGH
0
严重 CRITICAL
受影响目标 (2)
docker.io/pytorch/pytorch:2.4.1-cuda11.8-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.4.1-cuda11.8-cudnn9-runtime
docker tag  swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime  docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime

Containerd拉取命令

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

Shell快速替换命令

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

镜像构建历史


# 2024-09-05 03:54:58  0.00B 设置工作目录为/workspace
WORKDIR /workspace
                        
# 2024-09-05 03:54:58  0.00B 设置环境变量 PYTORCH_VERSION
ENV PYTORCH_VERSION=2.4.1
                        
# 2024-09-05 03:54:58  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:58  0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
                        
# 2024-09-05 03:54:58  0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
                        
# 2024-09-05 03:54:58  0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
                        
# 2024-09-05 03:54:58  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:58  0.00B 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.1 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=11.8.0 /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:58  6.25GB 复制新文件或目录到容器中
COPY /opt/conda /opt/conda # buildkit
                        
# 2024-09-05 03:51:19  25.96MB 执行命令并创建新的镜像层
RUN |4 PYTORCH_VERSION=2.4.1 TRITON_VERSION= TARGETPLATFORM=linux/amd64 CUDA_VERSION=11.8.0 /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:19  0.00B 添加元数据标签
LABEL com.nvidia.volumes.needed=nvidia_driver
                        
# 2024-09-05 03:51:19  0.00B 定义构建参数
ARG CUDA_VERSION=11.8.0
                        
# 2024-09-05 03:51:19  0.00B 定义构建参数
ARG TARGETPLATFORM=linux/amd64
                        
# 2024-09-05 03:51:19  0.00B 定义构建参数
ARG TRITON_VERSION=
                        
# 2024-09-05 03:51:19  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:8a0d0afe14cb52fb29bbf8c7bbf835922733f181232f5bd87be8b9ac1ded12cf",
    "RepoTags": [
        "pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch:2.4.1-cuda11.8-cudnn9-runtime"
    ],
    "RepoDigests": [
        "pytorch/pytorch@sha256:d8be98daa06ae251829c5c4e44a8debf5a154caee4a97dee6591beea72863ac6",
        "swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/pytorch/pytorch@sha256:d8be98daa06ae251829c5c4e44a8debf5a154caee4a97dee6591beea72863ac6"
    ],
    "Parent": "",
    "Comment": "buildkit.dockerfile.v0",
    "Created": "2024-09-04T19:54:58.968969594Z",
    "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": 6355309341,
    "GraphDriver": {
        "Data": {
            "LowerDir": "/var/lib/docker/overlay2/ea67b33616863f855ab2b2184ec55235824e5fbd2851722645acc0f99819f596/diff:/var/lib/docker/overlay2/062417b09ff62fdc3ca75a77746112630d1cee7d86d5ee606b70c11d59586cde/diff:/var/lib/docker/overlay2/8fd402f7dca9c33b1acf73d73142f12fdaa7f87b2e857ce66d68f7d082ef0caf/diff:/var/lib/docker/overlay2/2b60ad443dae8b57121baf2126916d1f4700d01739c63868b94ac830256a83d6/diff",
            "MergedDir": "/var/lib/docker/overlay2/ee7b29c51519f8a837224ed541c79666476cee3d425a0752adcb37f659596f11/merged",
            "UpperDir": "/var/lib/docker/overlay2/ee7b29c51519f8a837224ed541c79666476cee3d425a0752adcb37f659596f11/diff",
            "WorkDir": "/var/lib/docker/overlay2/ee7b29c51519f8a837224ed541c79666476cee3d425a0752adcb37f659596f11/work"
        },
        "Name": "overlay2"
    },
    "RootFS": {
        "Type": "layers",
        "Layers": [
            "sha256:1b9b7346fee7abbc7f5538eaa23548bd05a45abe8daf6794024be0c8ad7d60bb",
            "sha256:aed117f0148be166f7f07a156ba0fd6392491a67dc7af5c894c64bd63ef09b99",
            "sha256:ad2a06a00c48e74c8dbd778b66c1fb3a73532b9d9942baff8a055156cec7539b",
            "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef",
            "sha256:3d634f5e18fd826a67af6b88713803e7e606cb2edb3f37b2ca47fef78eea6dca"
        ]
    },
    "Metadata": {
        "LastTagTime": "2024-09-28T00:51:21.993664289+08:00"
    }
}

更多版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

docker.io/pytorch/pytorch:latest

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

linux/amd64 docker.io5.59GB2026-06-11 04:30
105

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

linux/amd64 docker.io12.85GB2026-07-04 02:22
28
检测到您正在使用广告拦截插件,本站为公益站点,依赖广告维持运转 🙏 查看如何关闭 ×