Last active
January 15, 2018 05:57
-
-
Save andrewabest/85bc85d2eb64fe16faa1a3e6aaffc635 to your computer and use it in GitHub Desktop.
SQL Server on Linux Docker local dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECHO OFF | |
docker stop mssql-myproj-dev | |
docker rm mssql-myproj-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ECHO OFF | |
docker inspect --type=image microsoft/mssql-server-linux | |
IF ERRORLEVEL 1 ( | |
docker pull microsoft/mssql-server-linux | |
) | |
docker run -d --name mssql-myproj-dev -e ACCEPT_EULA=Y -e SA_PASSWORD=Password$1 -e MSSQL_PID=Express -p 1434:1433 microsoft/mssql-server-linux:latest | |
docker attach mssql-myproj-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -v "$(Get-Location)/.mssql-data:/var/opt/mssql" -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=SqlServer2017" -p 1433:1433 -d microsoft/mssql-server-linux:latest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment