2

我将 buildx 用于我的多架构 Docker 构建。

基础镜像作为其 OS/archs 之一,但生成的镜像 ( python:3.8.5-alpine)缺少变体,在其清单中创建了一个镜像。linux/arm64/v8corralpeltzer/newtrackon/v8linux/arm64

我对这种差异感到困惑。它会产生兼容性问题吗?我应该尝试用 强制变体docker manifest annotate吗?

有关更多详细信息,请在GitHub 操作中运行。这是 buildx 命令的一部分:

buildx build --platform linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8

这个问题似乎来自 buildx 构建器可用的拱门:

/usr/bin/docker buildx inspect --bootstrap
#1 [internal] booting buildkit
#1 pulling image moby/buildkit:buildx-stable-1
#1 pulling image moby/buildkit:buildx-stable-1 1.6s done
#1 creating container buildx_buildkit_builder-4bebce7d838a55e24aa111384fec8c97144df7290
#1 creating container buildx_buildkit_builder-4bebce7d838a55e24aa111384fec8c97144df7290 1.7s done
#1 DONE 3.3s
Name:   builder-4bebce7d838a55e24aa111384fec8c97144df729
Driver: docker-container

Nodes:
Name:      builder-4bebce7d838a55e24aa111384fec8c97144df7290
Endpoint:  unix:///var/run/docker.sock
Status:    running
Platforms: linux/amd64, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/arm/v7, linux/arm/v6
4

0 回答 0