Fix: Azure Container Registry Restarting Infinitely for Image Build from M1

DevOps Jul 14, 2023

Docker image run local gracefully. Deploy and stuck at infinite reboot

The problem is at your Docker File build from Mac M1

You must include this options to let it know that your build is for x64 architecture.

--platform=linux/amd64

Example in Node.js image is:

FROM --platform=linux/amd64 node:16-alpine

Tags

TeamCMD

We are CODEMONDAY team and provide a variety of content about Business , technology, and Programming. Let's enjoy it with us.