Your Mac M 1 Docker Image Will Not Work On Production: Here’s Why.

Photo by JESHOOTS.COM on Unsplash

Context

The Problem

What’s Going On Actually

The Solution

docker buildx build --platform linux/amd64 
-t <your-dockerhub-username>/<your-image-name> \
-f Dockerfile \
--push \
--no-cache \
.

Conclusion

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store