The issue is caused by the rule: rules_docker and go_image (possibly other language-specific rules as well)
Is this a regression?
Not sure
Description
When running a go_image target from a darwin/arm64 machine (M1 Pro CPU), the target container image is always built for linux/amd64. Below are key snippets
There is no build error, but when the image is loaded onto the Docker daemon, it shows the following warning
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
🐞 bug report
Affected Rule
The issue is caused by the rule:
rules_docker
andgo_image
(possibly other language-specific rules as well)Is this a regression?
Not sure
Description
When running a
go_image
target from adarwin/arm64
machine (M1 Pro CPU), the target container image is always built forlinux/amd64
. Below are key snippets🔬 Minimal Reproduction
https://github.com/c16a/rules-docker-arm64-reproduction
🔥 Exception or Error
There is no build error, but when the image is loaded onto the Docker daemon, it shows the following warning
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_docker version:
Docker version