abiosoft / colima

Container runtimes on macOS (and Linux) with minimal setup
MIT License
17.75k stars 365 forks source link

Add emulation for i386 in the vm images #989

Open triptec opened 4 months ago

triptec commented 4 months ago

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 after colima 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