镜像构建历史
# 2026-11-18 08:22:09 1.85MB 执行命令并创建新的镜像层
RUN /bin/sh -c python3 -m pip install --no-cache-dir --upgrade "filelock>=4.2.1" # buildkit
# 2026-11-13 06:36:19 0.00B 设置环境变量 PYTHONUNBUFFERED
ENV PYTHONUNBUFFERED=1
# 2026-11-13 06:36:19 33.32KB 复制新文件或目录到容器中
COPY --chmod=0755 scripts/setup_pytorch_env.sh /usr/local/bin/setup_pytorch_env # buildkit
# 2026-11-13 06:36:19 1.02KB 复制新文件或目录到容器中
COPY --chmod=0755 scripts/smoke_pytorch.sh /usr/local/bin/ # buildkit
# 2026-11-13 06:36:19 26.22GB 执行命令并创建新的镜像层
RUN |6 VERSION=10.2.0 TORCH_INDEX_URL=https://stable-staging.repo.amd.com/rocm/whl-next/ TORCH_SPECS=torch[device-all]==2.15.0+rocm10.2.0 TORCHVISION_SPECS=torchvision[device-all]==0.29.2+rocm10.2.0 TORCHAUDIO_SPECS=torchaudio==2.11.1+rocm10.2.0 APEX_SPECS=apex==1.15.0+rocm10.2.0 /bin/sh -c pip_major="$(python3 -c 'import pip; print(pip.__version__.split(".")[0])')" && if [ "$pip_major" -lt 23 ]; then python3 -m pip install --upgrade pip; fi && python3 -m pip install --index-url "${TORCH_INDEX_URL}" ${TORCH_SPECS} "rocm[devel,device-all]" && if [ -n "${TORCHVISION_SPECS}" ]; then python3 -m pip install --index-url "${TORCH_INDEX_URL}" --extra-index-url https://pypi.org/simple ${TORCHVISION_SPECS}; fi && if [ -n "${TORCHAUDIO_SPECS}" ]; then python3 -m pip install --index-url "${TORCH_INDEX_URL}" --extra-index-url https://pypi.org/simple ${TORCHAUDIO_SPECS}; fi && if [ -n "${APEX_SPECS}" ]; then python3 -m pip install --index-url "${TORCH_INDEX_URL}" --extra-index-url https://pypi.org/simple ${APEX_SPECS}; fi && rocm-sdk init && python3 -c 'import torch; print(torch.version.git_version)' > /etc/framework-commit # buildkit
# 2026-11-13 06:23:04 0.00B 执行命令并创建新的镜像层
RUN |6 VERSION=10.2.0 TORCH_INDEX_URL=https://stable-staging.repo.amd.com/rocm/whl-next/ TORCH_SPECS=torch[device-all]==2.15.0+rocm10.2.0 TORCHVISION_SPECS=torchvision[device-all]==0.29.2+rocm10.2.0 TORCHAUDIO_SPECS=torchaudio==2.11.1+rocm10.2.0 APEX_SPECS=apex==1.15.0+rocm10.2.0 /bin/sh -c rm -f /usr/lib/python*/EXTERNALLY-MANAGED # buildkit
# 2026-11-13 06:23:04 473.58MB 执行命令并创建新的镜像层
RUN |6 VERSION=10.2.0 TORCH_INDEX_URL=https://stable-staging.repo.amd.com/rocm/whl-next/ TORCH_SPECS=torch[device-all]==2.15.0+rocm10.2.0 TORCHVISION_SPECS=torchvision[device-all]==0.29.2+rocm10.2.0 TORCHAUDIO_SPECS=torchaudio==2.11.1+rocm10.2.0 APEX_SPECS=apex==1.15.0+rocm10.2.0 /bin/sh -c chmod +x /tmp/install_rocm_deps.sh && /tmp/install_rocm_deps.sh && rm -f /tmp/install_rocm_deps.sh # buildkit
# 2026-11-12 19:11:38 4.77KB 复制新文件或目录到容器中
COPY staging/install_rocm_deps.sh /tmp/install_rocm_deps.sh # buildkit
# 2026-11-12 19:11:38 0.00B 添加元数据标签
LABEL org.opencontainers.image.title=ROCm PyTorch (rocm-ai-docker-stack) org.opencontainers.image.description=Multi-arch PyTorch on ROCm; prebuilt wheels from the multi-arch wheel index. org.opencontainers.image.version=10.2.0 com.amd.framework=pytorch com.amd.rocm.gpu-coverage=multi-arch
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG APEX_SPECS=apex==1.15.0+rocm10.2.0
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG TORCHAUDIO_SPECS=torchaudio==2.11.1+rocm10.2.0
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG TORCHVISION_SPECS=torchvision[device-all]==0.29.2+rocm10.2.0
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG TORCH_SPECS=torch[device-all]==2.15.0+rocm10.2.0
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG TORCH_INDEX_URL=https://stable-staging.repo.amd.com/rocm/whl-next/
# 2026-11-12 19:11:38 0.00B 定义构建参数
ARG VERSION=10.2.0
# 2026-11-06 18:28:50 179.00B
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/.temp_layer.control_data.8947.tar
# 2026-11-06 18:28:50 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 --clear=manifest.annotations --manifest.annotation org.opencontainers.image.version=26.04 --manifest.annotation org.opencontainers.image.title=ubuntu --manifest.annotation org.opencontainers.image.created=2026-11-06T10:28:50.132595+00:00 --manifest.annotation org.opencontainers.image.description=The Ubuntu container image maintained by Canonical
Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things.
It is the world's most popular operating system across public clouds and OpenStack clouds.
It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale.
Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
# 2026-11-06 18:28:50 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 --clear=config.labels --config.label org.opencontainers.image.version=26.04 --config.label org.opencontainers.image.title=ubuntu --config.label org.opencontainers.image.created=2026-11-06T10:28:50.132595+00:00 --config.label org.opencontainers.image.description=The Ubuntu container image maintained by Canonical
Ubuntu is a Debian-based Linux operating system that runs from the desktop to the cloud, to all your internet connected things.
It is the world's most popular operating system across public clouds and OpenStack clouds.
It is the number one platform for containers; from Docker to Kubernetes to LXD, Ubuntu can run your containers at scale.
Fast, secure and simple, Ubuntu powers millions of PCs worldwide.
# 2026-11-06 18:28:50 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 --config.env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2026-11-06 18:28:50 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 --clear=config.cmd --config.cmd /bin/bash
# 2026-11-06 18:28:50 0.00B
umoci config --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:26.04 --clear=config.entrypoint --clear=config.cmd
# 2026-11-06 18:28:49 101.54MB
umoci raw add-layer --image /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/ubuntu:rockcraft-base /home/buildd/rockcraft-ubuntu-f9b0ae373a9aa61a96756fa393588993/images/.temp_layer.8947.tar --tag 26.04
镜像信息
{
"Id": "sha256:31f90d4824f9d978f9b01d5d3048b0171d457da09cf20d4c600fef1f42d78950",
"RepoTags": [
"rocm/pytorch:rocm10.2.0_ubuntu26.04_py3.14_pytorch_release_2.15.0",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rocm/pytorch:rocm10.2.0_ubuntu26.04_py3.14_pytorch_release_2.15.0"
],
"RepoDigests": [
"rocm/pytorch@sha256:968ac665057dc6c7d48957ce3198dbacd156a960e27f932641498c9de786c102",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/rocm/pytorch@sha256:c4ed8511deaa3bd1a8e05719631272fe87dcbf263dd8937cea0db434727e6c9d"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2026-11-17T16:22:09.4069775-08:00",
"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/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"PYTHONUNBUFFERED=1"
],
"Cmd": [
"/bin/bash"
],
"Image": "",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {
"com.amd.framework": "pytorch",
"com.amd.rocm.gpu-coverage": "multi-arch",
"org.opencontainers.image.created": "2026-11-06T10:28:50.132595+00:00",
"org.opencontainers.image.description": "Multi-arch PyTorch on ROCm; prebuilt wheels from the multi-arch wheel index.",
"org.opencontainers.image.title": "ROCm PyTorch (rocm-ai-docker-stack)",
"org.opencontainers.image.version": "10.2.0"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 26792027070,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/5988c2c6e1a0e7eb85a2948b16bde31d6dbfe1fbdcb01a3c1f6cda24dad90845/diff:/var/lib/docker/overlay2/028be97b4a3f0cbad71bf5930da0b14fd6029562f71d6050632193785e0ed1c6/diff:/var/lib/docker/overlay2/a2fdcce49c83fa3ba4410df6694d0dfb3e3dfafff23de5698a0dac5f4989822d/diff:/var/lib/docker/overlay2/6814101d337c6052900ceb6272b3e601e1b62c5725e54700904057b7f8fe7937/diff:/var/lib/docker/overlay2/620d750416939eff36f447e5cc539547bdfd14e71ce74663c827dc10ef794bc1/diff:/var/lib/docker/overlay2/fde5dc9201177c8ae682fc0c3285f5a4f9710777d21038a7f16290aba2323bda/diff:/var/lib/docker/overlay2/93269021628b6e3f5cc2fbe6fff4e1902ac42e2efbddd8f0a468f37c1b4cbb32/diff:/var/lib/docker/overlay2/7ba3274f2a56baeeecac8ea857e0550f3f0a7c370711130db9d34fcbb19d0af2/diff",
"MergedDir": "/var/lib/docker/overlay2/47a8ed13bbe703fb9c70ecc169c28b3a8d43d7716fdbc3b00f64bd2e9bdb9010/merged",
"UpperDir": "/var/lib/docker/overlay2/47a8ed13bbe703fb9c70ecc169c28b3a8d43d7716fdbc3b00f64bd2e9bdb9010/diff",
"WorkDir": "/var/lib/docker/overlay2/47a8ed13bbe703fb9c70ecc169c28b3a8d43d7716fdbc3b00f64bd2e9bdb9010/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:2a89eb4dbc78f8fe790775a4e807e1355ba2f6b145c8dd7a267a782df1605124",
"sha256:758b22fe15be2c330dcead0c1b50476c074e113ec507627c6430337ffc9daa5e",
"sha256:aa34d84c91be5d3eef307406ff4cf812368425cbcf9600679acfa1046f593e1e",
"sha256:0eadead0d1bc363848c2686c8b28ef49885ee5f35d5be78cd8b40f8142afa2b6",
"sha256:c4e573b40c15b49b3e4a2214f125897adc7963229c92aff506719d6252721e6a",
"sha256:001b354561345ba8571592c09ca72ef05340beb1bb1f16b6d0270c66d57142e1",
"sha256:5313f96c4b64f1f07bb7c4aa850223a5f6f107b52c6283ba347c44c2224816d4",
"sha256:525cdd4b627eadd7be6e619e69caec5ed94085132edfb29c72ea19628af212ae",
"sha256:0b28f491d8b8468438642bed51223400c4d2d4ac4c2a14a787edab7f6de232ac"
]
},
"Metadata": {
"LastTagTime": "2026-11-20T00:20:47.549424053+08:00"
}
}