Member-only story
How to run Microsoft SQL on Mac M1 with Docker
Awhile ago I worked on a ASP.NET Core application and needed to run and setup a local Microsoft SQL on my Mac, here are the steps you need to do to set things up.
1 — Install Docker
if you already have docker installed, you can skip this one, if not go ahead and install it, based on your machine you have these options:
- Download Docker Desktop for Mac with Apple Silicon
- Download Docker Desktop for Intel chip
Once installed, open the Docker desktop, it will ask you an admin prompt to grant permission for the installation of the com.docker.vmnetd privileged helper service, give the permission and once you see this screen, then you’re good to go.
You can also confirm your Docker installation by running this command which gives you the current installed version:
docker -v
Docker version 26.0.0, build 2ae903e
2 — Pull the SQL Server image
Now you need to pull the SQL Server 2022 (16.x) Linux container image from the Microsoft Container Registry., you can do it by running…