what about running images, on mac m1, that were built on linux/amd64? Specifically, I set up Github Actions so my docker builds are happening on the Github server, which I am guessing are doing linux/amd64 builds. When I pull the image and try to run it, it runs into this error:
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
I'm Lakhan Samani, an indie software engineer from India. I build dev tools & products (Authorizer.dev, Deepup.ai) and write on software, open source, finance & life. Let's connect! 🚀
Haven't seen any such issues until your docker image uses some native api's
If its public image can you share Docker file + image name. I can take look into it.
It's happening with Micronaut, any ideas are appreciated.
try just getting micronaut and building a simple web app to serve you an index.html, then when you try and do dockerBuild from gradle you'll see the v8 issue.
I'm Lakhan Samani, an indie software engineer from India. I build dev tools & products (Authorizer.dev, Deepup.ai) and write on software, open source, finance & life. Let's connect! 🚀
Man, you saved so much time. Thanks
what about running images, on mac m1, that were built on linux/amd64? Specifically, I set up Github Actions so my docker builds are happening on the Github server, which I am guessing are doing linux/amd64 builds. When I pull the image and try to run it, it runs into this error:
The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Any suggestions?
Haven't seen any such issues until your docker image uses some native api's
If its public image can you share Docker file + image name. I can take look into it.
It's happening with Micronaut, any ideas are appreciated.
try just getting micronaut and building a simple web app to serve you an index.html, then when you try and do dockerBuild from gradle you'll see the v8 issue.
I can confirm, any image created in an M1 Mac without the —platform flag will not work in a GKE cluster…
That’s the reason why I found this post, lol.
I can confirm, any image created in an M1 Mac without the platform flag will not work in a ECS cluster.
That's the reason why I found this post, lol. copied from previous comment :D
Dude! This was so helpfull! 2 days losts trying to solve this issue and the solution was so simple!
I can confirm, this solved me issues building and deploying in GCP.
Thanks :-)
For me it tooks around 5 minutes on a M1 Mac Mini to build a amd64 Docker image. Does anybody has similar experience or is the problem my Dockerfile?
You saved my day. Thank you!