我有一个关于码头形象的建筑的问题。
例如,alpine:latest
为linux/arm/v8
体系结构提供映像。我们可以通过指定linux/arm64
平台来提取这个映像:
$ docker pull --platform linux/arm64 alpine
$ docker image inspect alpine
...
"Architecture": "arm64",
"Variant": "v8",
"Os": "linux",
...
我发现这个结果意味着linux/arm64
是linux/arm64/v8
的别名。在另一个实验中,我发现了以下类似的行为:
--platform linux/arm/v8
提取linux/arm64
图像--platform linux/arm
提取linux/arm/v7
图像--platform linux/arm/v7
提取linux/arm
图像请您解释一下这种别名的定义,或者解决架构的规则?还是有正式的导游?
谢谢。
发布于 2022-01-28 06:12:51
我对这个话题有了自己的答案,所以让我来分享一下。
这几乎是我所需要的。
附录
linux/arm64/v8
将被规范化 as linux/arm64
。arm
体系结构的默认变体是v7
。发布于 2022-01-23 05:13:03
码头文件有以下列表:
Architectures other than amd64?
Some images have been ported for other architectures, and many of these are officially supported (to various degrees).
Architectures officially supported by Docker, Inc. for running Docker: (see download.docker.com)
ARMv6 32-bit (arm32v6): https://hub.docker.com/u/arm32v6/
ARMv7 32-bit (arm32v7): https://hub.docker.com/u/arm32v7/
ARMv8 64-bit (arm64v8): https://hub.docker.com/u/arm64v8/
Linux x86-64 (amd64): https://hub.docker.com/u/amd64/
Windows x86-64 (windows-amd64): https://hub.docker.com/u/winamd64/
Other architectures built by official images: (but not officially supported by Docker, Inc.)
ARMv5 32-bit (arm32v5): https://hub.docker.com/u/arm32v5/
IBM POWER8 (ppc64le): https://hub.docker.com/u/ppc64le/
IBM z Systems (s390x): https://hub.docker.com/u/s390x/
MIPS64 LE (mips64le): https://hub.docker.com/u/mips64le/
RISC-V 64-bit (riscv64): https://hub.docker.com/u/riscv64/
x86/i686 (i386): https://hub.docker.com/u/i386/
https://stackoverflow.com/questions/70819028
复制相似问题