PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NVARCH=x86_64
NVIDIA_REQUIRE_CUDA=cuda>=11.6 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471
NV_CUDA_CUDART_VERSION=11.6.55-1
NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-6
CUDA_VERSION=11.6.2
LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
NVIDIA_VISIBLE_DEVICES=all
NVIDIA_DRIVER_CAPABILITIES=compute,utility
镜像构建历史
# 2023-11-10 15:14:59 0.00B 设置环境变量 NVIDIA_DRIVER_CAPABILITIES
ENV NVIDIA_DRIVER_CAPABILITIES=compute,utility
# 2023-11-10 15:14:59 0.00B 设置环境变量 NVIDIA_VISIBLE_DEVICES
ENV NVIDIA_VISIBLE_DEVICES=all
# 2023-11-10 15:14:59 17.29KB 复制新文件或目录到容器中
COPY NGC-DL-CONTAINER-LICENSE / # buildkit
# 2023-11-10 15:14:58 0.00B 设置环境变量 LD_LIBRARY_PATH
ENV LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64
# 2023-11-10 15:14:58 0.00B 设置环境变量 PATH
ENV PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2023-11-10 15:14:58 46.00B 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c echo "/usr/local/nvidia/lib" >> /etc/ld.so.conf.d/nvidia.conf && echo "/usr/local/nvidia/lib64" >> /etc/ld.so.conf.d/nvidia.conf # buildkit
# 2023-11-10 15:14:58 62.86MB 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends cuda-cudart-11-6=${NV_CUDA_CUDART_VERSION} ${NV_CUDA_COMPAT_PACKAGE} && rm -rf /var/lib/apt/lists/* # buildkit
# 2023-11-10 15:14:46 0.00B 设置环境变量 CUDA_VERSION
ENV CUDA_VERSION=11.6.2
# 2023-11-10 15:14:46 18.32MB 执行命令并创建新的镜像层
RUN |1 TARGETARCH=amd64 /bin/sh -c apt-get update && apt-get install -y --no-install-recommends gnupg2 curl ca-certificates && curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH}/3bf863cc.pub | apt-key add - && echo "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/${NVARCH} /" > /etc/apt/sources.list.d/cuda.list && apt-get purge --autoremove -y curl && rm -rf /var/lib/apt/lists/* # buildkit
# 2023-11-10 15:14:46 0.00B 添加元数据标签
LABEL maintainer=NVIDIA CORPORATION <cudatools@nvidia.com>
# 2023-11-10 15:14:46 0.00B 定义构建参数
ARG TARGETARCH
# 2023-11-10 15:14:46 0.00B 设置环境变量 NV_CUDA_COMPAT_PACKAGE
ENV NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-6
# 2023-11-10 15:14:46 0.00B 设置环境变量 NV_CUDA_CUDART_VERSION
ENV NV_CUDA_CUDART_VERSION=11.6.55-1
# 2023-11-10 15:14:46 0.00B 设置环境变量 NVIDIA_REQUIRE_CUDA brand brand brand brand brand brand brand brand brand brand
ENV NVIDIA_REQUIRE_CUDA=cuda>=11.6 brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471
# 2023-11-10 15:14:46 0.00B 设置环境变量 NVARCH
ENV NVARCH=x86_64
# 2023-10-03 18:45:52 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2023-10-03 18:45:51 72.79MB
/bin/sh -c #(nop) ADD file:4809da414c2d478b4d991cbdaa2df457f2b3d07d0ff6cf673f09a66f90833e81 in /
# 2023-10-03 18:45:50 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.version=20.04
# 2023-10-03 18:45:50 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
# 2023-10-03 18:45:50 0.00B
/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
# 2023-10-03 18:45:50 0.00B
/bin/sh -c #(nop) ARG RELEASE
镜像信息
{
"Id": "sha256:2098e65daccd40e8229a33d79948bac1788190d1a37fe748faedaee3a699bcf6",
"RepoTags": [
"nvidia/cuda:11.6.2-base-ubuntu20.04",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nvidia/cuda:11.6.2-base-ubuntu20.04"
],
"RepoDigests": [
"nvidia/cuda@sha256:a0dd581afdbf82ea9887dd077aebf9723aba58b51ae89acb4c58b8705b74179b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/nvidia/cuda@sha256:f1525d14696f1219da97e32d29b6485ca2af67be91f67cd3a472b9816d9c9f9a"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2023-11-10T07:14:59.166682708Z",
"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:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NVARCH=x86_64",
"NVIDIA_REQUIRE_CUDA=cuda\u003e=11.6 brand=tesla,driver\u003e=470,driver\u003c471 brand=unknown,driver\u003e=470,driver\u003c471 brand=nvidia,driver\u003e=470,driver\u003c471 brand=nvidiartx,driver\u003e=470,driver\u003c471 brand=geforce,driver\u003e=470,driver\u003c471 brand=geforcertx,driver\u003e=470,driver\u003c471 brand=quadro,driver\u003e=470,driver\u003c471 brand=quadrortx,driver\u003e=470,driver\u003c471 brand=titan,driver\u003e=470,driver\u003c471 brand=titanrtx,driver\u003e=470,driver\u003c471",
"NV_CUDA_CUDART_VERSION=11.6.55-1",
"NV_CUDA_COMPAT_PACKAGE=cuda-compat-11-6",
"CUDA_VERSION=11.6.2",
"LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64",
"NVIDIA_VISIBLE_DEVICES=all",
"NVIDIA_DRIVER_CAPABILITIES=compute,utility"
],
"Cmd": [
"/bin/bash"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"maintainer": "NVIDIA CORPORATION \u003ccudatools@nvidia.com\u003e",
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "20.04"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 153993747,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a5059089eb19c6317a1c14df96935e39880111fd16ceb1880db50c4552e895d4/diff:/var/lib/docker/overlay2/2ea4ef631afdacec7f7bc4606340f9c56932b96be5b8a50d168fded812e498a1/diff:/var/lib/docker/overlay2/c479411ff0d154a889733553c406bdd53ad773d170fe17c8438cd73a66e78243/diff:/var/lib/docker/overlay2/5408abd3ec726f4d055e10fddd8f488a8839c8a355fe1fb064cdc9fee660e07b/diff",
"MergedDir": "/var/lib/docker/overlay2/12ab19d0fdf1c33479d2c3b6acc2a8e9102fad0846ad6da53dd214786f14ba7e/merged",
"UpperDir": "/var/lib/docker/overlay2/12ab19d0fdf1c33479d2c3b6acc2a8e9102fad0846ad6da53dd214786f14ba7e/diff",
"WorkDir": "/var/lib/docker/overlay2/12ab19d0fdf1c33479d2c3b6acc2a8e9102fad0846ad6da53dd214786f14ba7e/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:6c3e7df31590f02f10cb71fc4eb27653e9b428df2e6e5421a455b062bd2e39f9",
"sha256:d79e2ee082c89c7902644bfb77571a89da5fc21d916e1f8fcad8109407494c46",
"sha256:0e89142a4b14323078f67ad7405da0325389d47489ec2af1888073c4c130178a",
"sha256:840d4b9f1b3532cce9ab7bbb50fceb681cbd7afee84f41526fe0a84cc3ef51bf",
"sha256:a90dd33a0ec6c3278f94d40dcc7274955ff2b40836f74dc8636c86a4bf9a7e9c"
]
},
"Metadata": {
"LastTagTime": "2025-01-13T16:18:10.042117361+08:00"
}
}