Hacker News new | ask | show | jobs
by mdaniel 394 days ago
In fairness, the opposite way usually ends up being much cheaper: make prod run arm64

I would guess that just `alias docker="docker --platform=linux/amd64"` type thing would go a long way toward evicting those platform mismatches[1]. I would also guess there's a way to switch off the binfmt "helper" in colima such that trying to run arm64 in the VM would immediately puke rather than silently helping you

1: or, of course, don't push production containers from your workstation, but the years have taught me that I'm talking to myself

1 comments

All of this is an effort to validate that building works on all environments.

> alias docker="docker --platform=linux/amd64"

I think that on its own breaks a Rust project which uses openssl with the vendored feature.