-
Notifications
You must be signed in to change notification settings - Fork 671
Description
I am adding this although I am not sure this is the correct place, but I figured it's the best place to begin looking for help at least - as other people facing it is likely to gather here, I assume.
I noticed a very strange behavior with wget
on a busybox
based image where, if I try to build for linux/amd64
running on an Apple silicon M2, wget
simply cuts off after logging that is connecting to the server on port 443, and exits with an exit code 141
. This happens to any HTTPS request, while plain HTTP requests still work.
The very same Dockerfile will build properly on a truly Intel amd64
environment, as well as M2 builds it properly when building linux/arm64
. The problem is on the cross-platform build.
One may think that the problem could point to Docker - have tried with both OrbStack and Docker Desktop for Mac on different M2 machines, both presenting the very same behavior. I also tried building it on a virtual Ubuntu machine - managed via OrbStack - so installed Docker amd64 properly within it, and... very same error.
So I am inclined to say that it's something within busybox
wget
itself on the linux/amd64
build that doesn't like to be emulated from linux/arm64
, or it could be something really weird from Mac's Roseta/emulation engine.
Anyone else seen something or has clues on where to look/go next? Any help is much appreciated.