https://www.docker.com/community-edition
docker pull microsoft/mssql-server-linux
docker run -d --name mssql -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=d@ZLgum3' -e 'MSSQL_PID=Developer' -p 1433:1433 microsoft/mssql-server-linux
At this point, the only problem I had was that the password was too sort (and made docker instance to raise the error and stop). I used Kitematic to watch the logs and discover the problem. It requires an 8 or more character password with letters, numbers, and symbols.
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
HOMEBREW_NO_ENV_FILTERING=1 ACCEPT_EULA=y brew install --no-sandbox msodbcsql mssql-tools
sqlcmd -S 127.0.0.1 -U sa -P d@ZLgum3 -Q "SELECT @@VERSION"
(You should see the MSSQL version on the console)
sqlcmd -S 127.0.0.1 -U sa -P d@ZLgum3 -Q "CREATE DATABASE <database-name>;"
sqlcmd -S 127.0.0.1 -U sa -P d@ZLgum3 -d <database-name> -i setup.sql
[1] Resources: