How to install MSSQL in Mac

docker resource memory allocation
1. Get MSSQL Server image
docker pull microsoft/msssql-server-linux
2. Running the docker container
docker run -d — name MSSQL_Server -e ‘ACCEPT_EULA=Y’ -e ‘SA_PASSWORD=mypassword’ -p 1433:1433 microsoft/mssql- server-linux
**Note**
if <mypassword> doesn't aling with MSSQL password rule then we might get some error while running the container.
3. Install SQL CLI as Admin
sudo npm install -g sql-cli
4. Check the current running status of containers
docker ps -a
5. Connect to mysql instance from CLI
mssql -u sa -p <mypassword>
6. Run any container from CLI using Container ID
docker restart <containerID>

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store