Replace the container name and password with your own. The Mac uses the Linux image (the SQL Server for Linux Docker image).ĭocker run -d -name Homer -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=myPassw0rd' -p 1433:1433 microsoft/mssql-server-linux Now that we've installed Docker and increased its memory allocation, we can go ahead and install SQL Server. OK, we're now ready to install SQL Server on your Mac. I've written a tutorial with screenshots: Install Docker on a Mac and Configure for SQL Server.
Once installed, we'll increase its memory allocation to a more suitable level for running SQL Server.
Because the Mac runs SQL Server inside a Docker container, the first thing we need to do is download and install Docker (unless it's already installed). This is a prerequisite for installing SQL Server on your Mac.
Therefore, there's no need to install a virtual machine with Windows (which was the only way to run SQL Server on a Mac prior to SQL Server 2017). This is made possible by running SQL Server from a Docker container. Microsoft has made SQL Server available for macOS and Linux systems. Install SQL Server directly to your Mac - no virtual machine required!