It appears M1 Macbooks target Arm64 by default. I was able to resolve it by specifying platform to the docker build command. E.g.:
docker build --platform=linux/amd64 -t my-image .
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Followed the 3-step tutorial for building and deploying a container instance described here:
https://learn.microsoft.com/nb-no/azure/container-instances/container-instances-tutorial-prepare-app
I've also tried building and launching the image described in this article (by recommandation from microsoft support), with the exact same result: https://www.site24x7.com/learn/build-docker-images-azure-container-registry.html
I am able to run the application locally, and all tutorial steps executes successfully.
However, after deploying successfully (according to azure cli / azure GUI), the app instantly terminates, and keeps restarting + terminating.
There are no errors, except for a warning that states that the container "is in a Waiting state and may not be running".
I am using a Macbook Air M1.
It appears M1 Macbooks target Arm64 by default. I was able to resolve it by specifying platform to the docker build command. E.g.:
docker build --platform=linux/amd64 -t my-image .
troubleshoot
az container logs --resource-group <your-resource-group> --name <your-container-instance-name>
go to the "Events" tab for your container instance to see if there are any events related to the container's startup
Ensure that your Dockerfile is set up correctly, especially the CMD or ENTRYPOINT instructions that define how your application should start
@Peter We are glad you were able to resolve your issue. Thank you for coming back and sharing the resolution to the community. Please accept an answer on this case. This will make the thread more visible and help future community users. Thanks again and have a great day!
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.