I have a Docker image that was built and uploaded to Amazon ECR by a x86 machine.
I'm trying to run this image on an ARM machine; however, I'm getting the following:
$sudo docker run 1b3ed34937e8
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
standard_init_linux.go:228: exec user process caused: exec format error
Do I need to rebuild this image? Is it possible to rebuild with only an image and not a dockerfile?
You can also use the emulation-layer built into docker:
docker run --platform linux/amd64 {imagename}
Since this is based on emulation it will not be as performant as running the container using the host architecture.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With