Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

x86 Docker Image on ARM

Tags:

docker

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?

like image 624
secam74499 Avatar asked Nov 23 '25 02:11

secam74499


1 Answers

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.

like image 175
Andreas.Ludwig Avatar answered Nov 24 '25 23:11

Andreas.Ludwig



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!