[英]Do Docker multi-arch images have the same image ID for each arch?
Do Docker multi-arch images have the same image ID (not Docker Content Digest? Image ID!) for each arch?每个拱门的 Docker 多架构图像是否具有相同的图像 ID(不是 Docker 内容摘要?图像 ID!)?
For images built from the same Dockerfile and base image but with different architectures, no.对于从相同的 Dockerfile 和基本映像构建但具有不同架构的映像,没有。
For example with httpd:2.4.43-alpine
, you can pull tags for different architecture:例如,使用
httpd:2.4.43-alpine
,您可以为不同的架构拉取标签:
# linux/amd64
docker pull httpd:2.4.43-alpine@sha256:fc11fbd1bc066776c608d2dddc6eafd1f6848ba709b452a6fa5d806fb13dd0f6
# linux/386
docker pull httpd:2.4.43-alpine@sha256:580d279181c20f105a9ef8bea9b1dac221d03f524b17d4a0b5bc7ea0c2be7a38
They do have a different ID:他们确实有不同的 ID:
docker image inspect httpd:2.4.43-alpine@sha256:fc11fbd1bc066776c608d2dddc6eafd1f6848ba709b452a6fa5d806fb13dd0f6 -f '{{ .Id }}'
# sha256:e7e8868c76974de9e867a76ccb25afd4415b313c2db3bdda7f92a789e3b5b6ae
docker image inspect httpd:2.4.43-alpine@sha256:580d279181c20f105a9ef8bea9b1dac221d03f524b17d4a0b5bc7ea0c2be7a38 -f '{{ .Id }}'
# sha256:a25ba4ab8022a688ef0c1d7d9c6c7e8cd15c769213bdef660a598fe46d07b889
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.