I'm trying here, after having posted the following on the Docker Forum.
I’ve tried the buildx command explained in the documentation (from my Intel-based Mac):
# This normally works with build, without buildx
git clone https://github.com/Rothamsted/knetminer
cd knetminer
# buildx is the new thing I'm trying, to have multi-arch support
docker buildx build --platform linux/amd64,linux/arm64 -t knetminer/knetminer -f docker/Dockerfile --push .
However, when I try the published image on an ARM64, I still get the usual: standard_init_linux.go:211: exec user process caused “exec format error”
Is buildx enough to obtain multiple-architecture images? Or do I need more (eg, Linux images that actually support ARM)?
My image is based on another one, which is based on a Tomcat +Linux image. Do I need to re-run buildx on all the parents?
For those interested in details, this is about building the image for our own application from its codebase, documentation here.
Thanks in advance.