When we're cross-compiling on mac m1 computers we're running amd64 docker-images and some of the binaries are i386 binaries which I guess runs just find on actual amd64 processors but won't run on emulated amd64. Our current solution is to run docker run --privileged --rm tonistiigi/binfmt --install 386 which will install i386 emulation in the host vm but we need to re-run that after colima stop; colima start and often it's not realized until pretty far into the build process.
Description
When we're cross-compiling on mac m1 computers we're running amd64 docker-images and some of the binaries are i386 binaries which I guess runs just find on actual amd64 processors but won't run on emulated amd64. Our current solution is to run
docker run --privileged --rm tonistiigi/binfmt --install 386
which will install i386 emulation in the host vm but we need to re-run that aftercolima stop; colima start
and often it's not realized until pretty far into the build process.Link to the triaging on slack: https://cloud-native.slack.com/archives/C05SPLRAS7J/p1703844990323929