镜像构建历史
# 2025-05-04 01:33:45 0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
# 2025-05-04 01:33:45 0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
# 2025-05-04 01:33:45 17.29KB 复制新文件或目录到容器中
COPY NGC-DL-CONTAINER-LICENSE / # buildkit
# 2025-05-04 01:33:45 0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64
# 2025-05-04 01:33:45 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-05-04 01:33:45 22.00B 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/cuda/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
# 2025-05-04 01:33:45 266.11MB 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c ${PKG_CMD} upgrade -y && ${PKG_CMD} install -y cuda-cudart-12-9-${NV_CUDA_CUDART_VERSION} cuda-compat-12-9 && ${PKG_CMD} clean all && rm -rf /var/cache/yum/* # buildkit
# 2025-05-04 01:33:32 0.00B 设置环境变量 CUDA_VERSION
ENV CUDA_VERSION=12.9.0
# 2025-05-04 01:33:32 1.61KB 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c NVIDIA_GPGKEY_SUM=d0664fbbdb8c32356d45de36c5984617217b2d0bef41b93ccecd326ba3b80c87 && curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/rhel9/${NVARCH}/D42D0685.pub | sed '/^Version/d' > /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA && echo "$NVIDIA_GPGKEY_SUM /etc/pki/rpm-gpg/RPM-GPG-KEY-NVIDIA" | sha256sum -c --strict - # buildkit
# 2025-05-04 01:33:31 0.00B 添加元数据标签
LABEL maintainer=NVIDIA CORPORATION <sw-cuda-installer@nvidia.com>
# 2025-05-04 01:33:31 0.00B 定义构建参数
ARG TARGETARCH
# 2025-05-04 01:33:31 165.00B 复制新文件或目录到容器中
COPY cuda.repo-x86_64 /etc/yum.repos.d/cuda.repo # buildkit
# 2025-05-04 01:33:31 0.00B 设置环境变量 NV_CUDA_CUDART_VERSION
ENV NV_CUDA_CUDART_VERSION=12.9.37-1
# 2025-05-04 01:33:31 0.00B 设置环境变量 NVIDIA_REQUIRE_CUDA brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand brand
ENV NVIDIA_REQUIRE_CUDA=cuda>=12.9 brand=unknown,driver>=535,driver<536 brand=grid,driver>=535,driver<536 brand=tesla,driver>=535,driver<536 brand=nvidia,driver>=535,driver<536 brand=quadro,driver>=535,driver<536 brand=quadrortx,driver>=535,driver<536 brand=nvidiartx,driver>=535,driver<536 brand=vapps,driver>=535,driver<536 brand=vpc,driver>=535,driver<536 brand=vcs,driver>=535,driver<536 brand=vws,driver>=535,driver<536 brand=cloudgaming,driver>=535,driver<536 brand=unknown,driver>=550,driver<551 brand=grid,driver>=550,driver<551 brand=tesla,driver>=550,driver<551 brand=nvidia,driver>=550,driver<551 brand=quadro,driver>=550,driver<551 brand=quadrortx,driver>=550,driver<551 brand=nvidiartx,driver>=550,driver<551 brand=vapps,driver>=550,driver<551 brand=vpc,driver>=550,driver<551 brand=vcs,driver>=550,driver<551 brand=vws,driver>=550,driver<551 brand=cloudgaming,driver>=550,driver<551 brand=unknown,driver>=560,driver<561 brand=grid,driver>=560,driver<561 brand=tesla,driver>=560,driver<561 brand=nvidia,driver>=560,driver<561 brand=quadro,driver>=560,driver<561 brand=quadrortx,driver>=560,driver<561 brand=nvidiartx,driver>=560,driver<561 brand=vapps,driver>=560,driver<561 brand=vpc,driver>=560,driver<561 brand=vcs,driver>=560,driver<561 brand=vws,driver>=560,driver<561 brand=cloudgaming,driver>=560,driver<561 brand=unknown,driver>=565,driver<566 brand=grid,driver>=565,driver<566 brand=tesla,driver>=565,driver<566 brand=nvidia,driver>=565,driver<566 brand=quadro,driver>=565,driver<566 brand=quadrortx,driver>=565,driver<566 brand=nvidiartx,driver>=565,driver<566 brand=vapps,driver>=565,driver<566 brand=vpc,driver>=565,driver<566 brand=vcs,driver>=565,driver<566 brand=vws,driver>=565,driver<566 brand=cloudgaming,driver>=565,driver<566 brand=unknown,driver>=570,driver<571 brand=grid,driver>=570,driver<571 brand=tesla,driver>=570,driver<571 brand=nvidia,driver>=570,driver<571 brand=quadro,driver>=570,driver<571 brand=quadrortx,driver>=570,driver<571 brand=nvidiartx,driver>=570,driver<571 brand=vapps,driver>=570,driver<571 brand=vpc,driver>=570,driver<571 brand=vcs,driver>=570,driver<571 brand=vws,driver>=570,driver<571 brand=cloudgaming,driver>=570,driver<571
# 2025-05-04 01:33:31 0.00B 设置环境变量 NVARCH
ENV NVARCH=x86_64
# 2025-05-04 01:33:31 0.00B 设置环境变量 PKG_CMD
ENV PKG_CMD=yum
# 2025-04-28 23:33:44 209.56MB
/bin/sh -c #(nop) LABEL "build-date"="2025-04-28T15:33:11" "architecture"="x86_64" "vcs-type"="git" "vcs-ref"="ef653792409ae12e17049047994ce871f185073a" "release"="1745854298"
# 2025-04-28 23:33:43 0.00B
/bin/sh -c #(nop) COPY file:58cc94f5b3b2d60de2c77a6ed4b1797dcede502ccdb429a72e7a72d994235b3c in /usr/share/buildinfo/content-sets.json
# 2025-04-28 23:33:43 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2025-04-28 23:33:43 0.00B
/bin/sh -c #(nop) COPY file:b37d593713ee21ad52a4cd1424dc019a24f7966f85df0ac4b86d234302695328 in /etc/yum.repos.d/.
# 2025-04-28 23:33:43 0.00B
/bin/sh -c #(nop) COPY dir:0b5ad9e7b2278f0a72171d77f178b383d910ebd44b85411a07e9f9f8cd7232ac in /
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) ENV container oci
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL io.openshift.tags="base rhel9"
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL io.openshift.expose-services=""
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL io.k8s.display-name="Red Hat Universal Base Image 9"
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL io.k8s.description="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL description="The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly."
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL summary="Provides the latest release of Red Hat Universal Base Image 9."
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL com.redhat.license_terms="https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI"
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL com.redhat.component="ubi9-container" name="ubi9" version="9.5" distribution-scope="public"
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL url="https://www.redhat.com"
# 2025-04-28 23:33:42 0.00B
/bin/sh -c #(nop) LABEL maintainer="Red Hat, Inc." vendor="Red Hat, Inc."
镜像信息
{
"Id": "sha256:a0c9bc32b8e2f9821a65e6111c3ed7c171bfcb5c7e7d15248a47df901cfc60cb",
"RepoTags": [
"nvidia/cuda:12.9.0-base-ubi9",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nvidia/cuda:12.9.0-base-ubi9"
],
"RepoDigests": [
"nvidia/cuda@sha256:e9ffbe8a225bd324f537cb4861484da2b48abedf5b20a6751a62974cf4f18cfe",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nvidia/cuda@sha256:41b396972e280ed7d2dc06185e302189e44e4cb80849172f779a93d1c3b87d4b"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-05-03T17:33:45.774954409Z",
"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/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"container=oci",
"PKG_CMD=yum",
"NVARCH=x86_64",
"NVIDIA_REQUIRE_CUDA=cuda\u003e=12.9 brand=unknown,driver\u003e=535,driver\u003c536 brand=grid,driver\u003e=535,driver\u003c536 brand=tesla,driver\u003e=535,driver\u003c536 brand=nvidia,driver\u003e=535,driver\u003c536 brand=quadro,driver\u003e=535,driver\u003c536 brand=quadrortx,driver\u003e=535,driver\u003c536 brand=nvidiartx,driver\u003e=535,driver\u003c536 brand=vapps,driver\u003e=535,driver\u003c536 brand=vpc,driver\u003e=535,driver\u003c536 brand=vcs,driver\u003e=535,driver\u003c536 brand=vws,driver\u003e=535,driver\u003c536 brand=cloudgaming,driver\u003e=535,driver\u003c536 brand=unknown,driver\u003e=550,driver\u003c551 brand=grid,driver\u003e=550,driver\u003c551 brand=tesla,driver\u003e=550,driver\u003c551 brand=nvidia,driver\u003e=550,driver\u003c551 brand=quadro,driver\u003e=550,driver\u003c551 brand=quadrortx,driver\u003e=550,driver\u003c551 brand=nvidiartx,driver\u003e=550,driver\u003c551 brand=vapps,driver\u003e=550,driver\u003c551 brand=vpc,driver\u003e=550,driver\u003c551 brand=vcs,driver\u003e=550,driver\u003c551 brand=vws,driver\u003e=550,driver\u003c551 brand=cloudgaming,driver\u003e=550,driver\u003c551 brand=unknown,driver\u003e=560,driver\u003c561 brand=grid,driver\u003e=560,driver\u003c561 brand=tesla,driver\u003e=560,driver\u003c561 brand=nvidia,driver\u003e=560,driver\u003c561 brand=quadro,driver\u003e=560,driver\u003c561 brand=quadrortx,driver\u003e=560,driver\u003c561 brand=nvidiartx,driver\u003e=560,driver\u003c561 brand=vapps,driver\u003e=560,driver\u003c561 brand=vpc,driver\u003e=560,driver\u003c561 brand=vcs,driver\u003e=560,driver\u003c561 brand=vws,driver\u003e=560,driver\u003c561 brand=cloudgaming,driver\u003e=560,driver\u003c561 brand=unknown,driver\u003e=565,driver\u003c566 brand=grid,driver\u003e=565,driver\u003c566 brand=tesla,driver\u003e=565,driver\u003c566 brand=nvidia,driver\u003e=565,driver\u003c566 brand=quadro,driver\u003e=565,driver\u003c566 brand=quadrortx,driver\u003e=565,driver\u003c566 brand=nvidiartx,driver\u003e=565,driver\u003c566 brand=vapps,driver\u003e=565,driver\u003c566 brand=vpc,driver\u003e=565,driver\u003c566 brand=vcs,driver\u003e=565,driver\u003c566 brand=vws,driver\u003e=565,driver\u003c566 brand=cloudgaming,driver\u003e=565,driver\u003c566 brand=unknown,driver\u003e=570,driver\u003c571 brand=grid,driver\u003e=570,driver\u003c571 brand=tesla,driver\u003e=570,driver\u003c571 brand=nvidia,driver\u003e=570,driver\u003c571 brand=quadro,driver\u003e=570,driver\u003c571 brand=quadrortx,driver\u003e=570,driver\u003c571 brand=nvidiartx,driver\u003e=570,driver\u003c571 brand=vapps,driver\u003e=570,driver\u003c571 brand=vpc,driver\u003e=570,driver\u003c571 brand=vcs,driver\u003e=570,driver\u003c571 brand=vws,driver\u003e=570,driver\u003c571 brand=cloudgaming,driver\u003e=570,driver\u003c571",
"NV_CUDA_CUDART_VERSION=12.9.37-1",
"CUDA_VERSION=12.9.0",
"LD_LIBRARY_PATH=/usr/local/cuda/lib64",
"NVIDIA_VISIBLE_DEVICES=all",
"NVIDIA_DRIVER_CAPABILITIES=compute,utility"
],
"Cmd": [
"/bin/bash"
],
"Image": "",
"Volumes": null,
"WorkingDir": "/",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"architecture": "x86_64",
"build-date": "2025-04-28T15:33:11",
"com.redhat.component": "ubi9-container",
"com.redhat.license_terms": "https://www.redhat.com/en/about/red-hat-end-user-license-agreements#UBI",
"description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
"distribution-scope": "public",
"io.buildah.version": "1.39.0-dev",
"io.k8s.description": "The Universal Base Image is designed and engineered to be the base layer for all of your containerized applications, middleware and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.",
"io.k8s.display-name": "Red Hat Universal Base Image 9",
"io.openshift.expose-services": "",
"io.openshift.tags": "base rhel9",
"maintainer": "NVIDIA CORPORATION \u003csw-cuda-installer@nvidia.com\u003e",
"name": "ubi9",
"release": "1745854298",
"summary": "Provides the latest release of Red Hat Universal Base Image 9.",
"url": "https://www.redhat.com",
"vcs-ref": "ef653792409ae12e17049047994ce871f185073a",
"vcs-type": "git",
"vendor": "Red Hat, Inc.",
"version": "9.5"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 475685783,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/591dcbfed10b8a865fdd629dedbcc1646aa8758197c6bb13cdf60fa0b0a8736d/diff:/var/lib/docker/overlay2/ae9c99f147170d55ef66b45f6cc041f1b03a94d6ffe70fe126c05c455414527a/diff:/var/lib/docker/overlay2/262e76086065a7a1791c82829cd2b1fcb1d96e18b25332f2f6cc5e5f65b54f93/diff:/var/lib/docker/overlay2/2f4e7fb4874441637ef010cb1a817cc8f7f4d8035ce118db6260ba5e1de57521/diff:/var/lib/docker/overlay2/1db7451687d54331b108d9fae624d0882dda39a0322f9a644e1460d431cef8b7/diff",
"MergedDir": "/var/lib/docker/overlay2/657e0d41114a6473ff5fba007abc88e1a3aa9f3c7c8ac65d7bb4dd190219cf32/merged",
"UpperDir": "/var/lib/docker/overlay2/657e0d41114a6473ff5fba007abc88e1a3aa9f3c7c8ac65d7bb4dd190219cf32/diff",
"WorkDir": "/var/lib/docker/overlay2/657e0d41114a6473ff5fba007abc88e1a3aa9f3c7c8ac65d7bb4dd190219cf32/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:58ff4fd5ef9ca7defcc01230c78dd8b15519fe6d6540f09a8554bc235af2abf9",
"sha256:cfeeeca7cf74f2f6ac055a0d7c47a846f2b9c912666edcfa831a82b634079c63",
"sha256:6dfb82f070153b7937053eb330ca6baee094d7e1530e5130a342379ea453c026",
"sha256:f04e82c61e212c23024022baf7eb13c7329b3fce29481100aba8075dcf8993fe",
"sha256:0a5aec546d06ab7b3e457f87916050e0407af5735d2959a04c5055211899c26b",
"sha256:f8ea0d434751f30b33a67b332804768d93116e9319e591fd66bee28fe9e257c4"
]
},
"Metadata": {
"LastTagTime": "2025-05-12T11:22:07.722520386+08:00"
}
}