GoogleContainerTools / jib

🏗 Build container images for your Java applications.
Apache License 2.0
13.5k stars 1.42k forks source link

v0.27.1-core not building amd64 images on M1+ macs #4279

Open Rattenkrieg opened 1 week ago

Rattenkrieg commented 1 week ago

Environment:

Description of the issue: I have my cloud running amd64/linux containers hence I build with .setPlatforms(setOf(Platform("amd64", "linux"))). My CI setup is the same arch however sometimes I use to deploy from my M1 Mac (build image + push image + deploy) and since #4249 I'm getting

The configured platforms don't match the Docker Engine's OS and architecture (linux/arm64)

I see that there are changes in that PR that examine docker -info and my setup obviously reports Architecture: aarch64 which being treated as an error despite my Mac totally happy to docker build --platform linux/amd64.

While this issue being triaged/fixed, maybe someone knows a way to configure docker to pretend it running on amd64 when asked for docker info ...?