How to Install SQL Server on Mac | Run MS SQL on macOS with Docker

Ready, click the button in the top right corner to generate summary
AI thinking...



🛠️ Want to run Microsoft SQL Server on your MacBook with M1, M2, or M3 chip? In this updated 2025 tutorial, I’ll walk you through how to install and run SQL Server on macOS using Docker, since Microsoft doesn’t officially support SQL Server natively on Mac.

This is the best workaround to use SQL Server on a Mac, whether you’re a developer, student, or data analyst needing to test and query SQL databases.

💡 In this video, you’ll learn:

✅ How to install Docker Desktop on Apple Silicon Mac
✅ How to pull the official Microsoft SQL Server container image
✅ How to run the container with custom username, password, and port
✅ How to connect to SQL Server using Azure Data Studio or VS Code
✅ BONUS: How to persist data using Docker volumes
✅ Fully compatible with macOS Sonoma, Ventura, and Monterey

📌 Step-by-step Commands:

Install Docker:
👉 Visit https://www.docker.com/products/docker-desktop/

Pull SQL Server Image:

bash
Copy
Edit
docker pull mcr.microsoft.com/mssql/server:2019-latest
Run SQL Server Container:

bash
Copy
Edit
docker run -e “ACCEPT_EULA=Y” -e “SA_PASSWORD=YourStrong@Passw0rd”
-p 1433:1433 –name sqlserver
-d mcr.microsoft.com/mssql/server:2019-latest
Connect using Azure Data Studio:
👉 https://learn.microsoft.com/en-us/sql/azure-data-studio/

🧠 Ideal For:

Web & backend developers

SQL learners and bootcamp students

Devs using .NET or ASP.NET Core

Data engineers and analysts

👍 Like this video? Tap Like ❤️, comment your setup questions 💬, and Subscribe 🔔 for more Mac development tools, database setup tutorials, and Docker tricks!

3. Hashtags:
#SQLServerMac #InstallSQLServerM1 #SQLServerDockerMac #MacM1DatabaseTools #DockerSQLMac #MacbookSQLServer #macOSSonoma #AzureDataStudioMac #RunSQLMac #AppleSiliconSQLServer #SQLServer2025 #MacDevTools #SQLOnMac #SQLServerForDevelopers
Note: ProgrammingKnowledge2 is the original author of this video, we just embed it, if you have any questions please contact him via Youtube.

Previous Article PS4/PS5 Jailbreak News: Y2JB Patched, PSVue, 13.04, ffpkg, Kstuff-Lite, Fake Sign-in & More!