Install Microsoft SQL Server on ARM-based macOS (Azure SQL Edge)
Since the SQL server Docker image supports only amd64 architecture, attempting to run it on an ARM-based Mac machine results in error. However, Azure SQL Edge, a similar RDBM tool primarily designed for IoT edge deployments, can be used as a fully functional alternative.
Follow the steps below to install Azure SQL Edge.
Step 1: Pull the Docker Image
Download the Azure SQL Edge image to your system:
docker pull mcr.microsoft.com/azure-sql-edge
Step 2: Run the Docker Container
When the image successfully downloads to your machine, run the container using the following command:
sudo docker run --cap-add SYS_PTRACE -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=Strong.Pwd-123' -p 1433:1433 --name azure-sql-edge -d mcr.microsoft.com/azure-sql-edge
That's it!
Enjoy coding ~ 😉