docs icon indicating copy to clipboard operation
docs copied to clipboard

Cannot run on PlayWithDocker when completing steps on M1 Mac

Open dmitry-kabanov opened this issue 3 years ago • 1 comments

File: get-started/04_sharing_app.md

When I follow the Getting started guide on M1 Mac, it builds and pushed to Docker hub the image based on linux/arm64 architecture.

When I try to use this image on PlayWithDocker, it fails with the following warning:

WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

If I try to open the port 3000 using "Open port" button, I get connection was reset.

When I do docker ps, I see that no image was started, although it was just a warning, not an error.

dmitry-kabanov avatar Apr 13 '22 08:04 dmitry-kabanov

Is there a fix for this issue?

SabreenKaur avatar Sep 28 '22 14:09 SabreenKaur

I did some research and found a fix for this issue: https://medium.com/geekculture/docker-build-with-mac-m1-d668c802ab96

You need to build the image locally with the buildx command so it will compensate for different architectures (like the one in play-with-docker) before pushing it to the repo. I confirmed it worked on my end when tested

pgregoretti avatar Jan 05 '23 18:01 pgregoretti

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

docker-robott avatar Mar 30 '23 03:03 docker-robott